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 would be limited to AJAX.
Related Posts:
- What’s the preferred method of writing AJAX-enabled plugins?
- Help with 4.6. Attachment response object in JSON API plugin
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Ajax Load More and Masonry: is it possible to load admin-ajax.php in the front end?
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- ‘Lazy loading’ list of posts with pagination
- Errors while using ajax from external wordpress page
- How to include admin-ajax when loading external javascript
- Why is my ajax call refreshing the page?
- How to create popup same as wordpress popup feature
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- How to add pagination to wpbakery grid?
- How can I process xml file on upload?
- ajax front-end increment views on click
- Check if email address exists front end with AJAX in a plugin
- WooCommerce get_price returning wrong price when used via ajax
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- AJAX search posts and pages
- Theme is Causing Ajax Conflicts for a plugin I cant identify it
- wordpress, search form using ajax
- Search for categories
- Best place for if/else piece of code related to custom plugin?
- WordPress Integration with Google Groups
- Best place to load wp_ajax_the_ajax_hook action in plugin
- jQuery.post not working within shortcode – WordPress Ajax
- How to load wp_editor via AJAX
- How can I inject options into an select tag inside the widget form?
- Init plugin again after ajax call finish
- Display wordpress post’s in popup?
- Using color picker in plugin, does input attribute order matter?
- How to handle cookies from a WordPress plugin on a cached page?
- wordpress file upload with ajax when site is ajaxyfi
- Post Comments with Ajax in WordPress
- AJAX search as you type? [duplicate]
- WordPress api call using wp-ajax returns error 400
- Using wpdb without loading all plug-ins via wp-load.php
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Call plugin with php function
- Render Modula Plugin Shortcode On Ajax Request
- AJAX on Front-End Button Click not working – Custom Plugin
- How to handle WordPress Plugin Front-end AJAX Call [duplicate]
- AJAX Load more start with x posts
- Is it safe to use admin-ajax.php in the frontend?
- Create WordPress posts from JSON array using plugin in admin
- Adding inside wp-plugin jQuery script that receives JSON-formatted data, generated by php-function inside this plugin
- WordPress front end AJAX. Return 0 :?
- How to do the simplest possible frontend ajax call from a plugin?
- Proper way to handle admin-ajax calls
- Using custom php file for ajax url inside plugin
- Asynchronous request in wordpress
- How do I localize admin-ajax.php that is used in Ajax Load More – Infinite Scroll?
- Ajax object not defined – JS file is in plugin folder
- How to get CPT category checkbox list and show post of selected(multiply) checkboxes via ajax?
- WordPress subfolder installation AJAX Problem
- Call Ajax URL in Plugin
- Calling a class method instantiated by ajax call in wordpress [closed]
- Loading by Ajax a plugin that also uses Ajax
- How to call php file in theme directory from plugin
- How do I reinit WordPress plugins dynamically using jS?
- How can I adjust my function so the page editor still loads in the backend?
- Error datatable whit ajax
- Facing Problem with admin-ajax.php URL – Getting 404 with AJAX call
- Trouble with AJAX using GET
- WP Ajax DB issues
- Calling PHP function with AJAX
- Adding LOAD MORE on a page
- jQuery Ajax not loading page with ACF fields
- How achive serving multiple concurrent Ajax / Rest calls in plugin?
- admin-ajax.php returning 0
- Update User Meta Via Ajax
- User Following System
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Overwriting Plugin’s Ajax callback function from theme
- cURL do not mimic click
- admin-ajax.php not working properly on subdomains
- My ajax request don´t work and return 0
- Plugin with AJAX on subdomains causes 404 in console
- WordPress update plugin through Dashboard/Plugins displaying error
- How can I use wp_ajax_response for front-end error reporting?
- Not getting result using ajax on wordpress
- display user input using ajax in wordpress
- Ajax, jQuery and WordPress
- Hyperlink to execute PHP
- How to get site homepage from plugin?
- Contact Form loaded with Ajax
- How to load a plugin when doing an Ajax call? [duplicate]
- WordPress plugin ajax post parameter
- admin panel save option with ajax
- Capturing POST data
- Pulling Advanced Custom Fields from other pages
- Response from Php File to Ajax is not getting sent
- Plugin Admin Page Ajax-Admin call returning 0, URL set correctly. Implemented localized scripts but did not fix it
- Load css classes after using ajax calls
- How to make a rest style plugin?
- WordPress portfolio pagination on home page
- wordpress Ajax success doesn’t return the value
- Inline AJAX script passing variables to PHP
- Not applying update field (acf) in my plugin
- How to get wp_editor field content when it is inside a Form?