WooCommerce variable product can not add to cart using ajax after updating latest version of WooCommerce
WooCommerce variable product can not add to cart using ajax after updating latest version of WooCommerce
WooCommerce variable product can not add to cart using ajax after updating latest version of WooCommerce
Sending email through Ajax without page refresh hangs on admin_ajax.php
Search live Ajax
How do I call a value from the datase using ajax
current-menu-item not apllying with wp_nav_menu() on ajax
I just tested your code, I guess the ajaxurl in your javascript is wrong, it must be: <?php echo admin_url( ‘options.php’ ); ?> This is the code I have tested. class TestAjaxSettingsAPI { public function __construct() { add_action( ‘admin_menu’, array( $this, ‘agy_admin_menu’ ) ); add_action( ‘admin_init’, array( $this, ‘agy_register_settings’) ); } public function agy_admin_menu() { … Read more
You seem to be missing the ajax actions, there are two, one for logged in users and one for not logged in users. Going by your action you will need to add the following actions. // this one for logged in users add_action(‘wp_ajax_my_action’, ‘my_action’); // this one for not logged in users add_action(‘wp_ajax_nopriv_my_action’, ‘my_action’);
Store ajax data in PHP variable
Refresh Gutenberg with JS for it show updated post
Failed to load resource: the server responded with a status of 500 (Internal Server Error) through wp_admin_ajax.php