define( 'WP_POST_REVISIONS', false );
require_once ABSPATH . 'wp-settings.php';
define( 'WP_POST_REVISIONS', false );
function disable_autosave() {
wp_deregister_script( 'autosave' );
}
add_action( 'admin_init', 'disable_autosave' );
Fatal error: Uncaught Error: Call to undefined function prin_r() in C:\OpenServer\domains\localhost\ajax\sendpost.php:6
Stack trace:
#0 C:\OpenServer\domains\localhost\elems\routes.php(42): include()
#1 C:\OpenServer\domains\localhost\index.php(3): include('C:\\OpenServer\\d...')
#2 {main}
thrown in C:\OpenServer\domains\localhost\ajax\sendpost.php on line 6
$countURL = count(explode('/', $_SERVER['REQUEST_URI']));
if($countURL){
if($countURL == 3){
$assetsURL = '../';
}if($countURL == 4){
$assetsURL = '../../';
}
}
<?php echo $assetsURL; ?>assets/css/style.css