don’t call ajax if not plugin page
You can check for WordPress’s DOING_AJAX constant: if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) { return; } …or use the related wp_doing_ajax() function: if ( wp_doing_ajax() ) { return; } However, I’d also double-check to make sure that App\Bootstrap has a method named process_moviewp_like as well, because that error doesn’t look like something that … Read more