Stop admin-ajax?

Is it possible to simply disable/stop admin-ajax.php from running?

Have searched WordPress Doc. Have searched Google. Have searched this forum. Found no answer.

Have also tried this, but it doesn’t work:

function stop_ajax()
define( ‘DOING_AJAX’, false );
add_action( ‘admin_init’, ‘stop_ajax’ );

Read more here:: Stop admin-ajax?

Leave a Reply

Your email address will not be published. Required fields are marked *