How to modify wp_ajax function?

You can jump in front of an AJAX hook by specifying a higher priority (i.e. lower number), like this:

add_action( 'wp_ajax_find_posts', 'wp_ajax_find_posts', 0 );

NB: works because 0 < 1

Leave a Comment