• Hello! Thanks for your plugin.

    Can you made small improvement, I have custom WP core folder, so this code broke plugin functionality.

    
    jQuery.getJSON(
    	'/wp-admin/admin-ajax.php',
    	...
    );
    

    You can use code like this:

    
    wp_localize_script( 'spwp86_script', 'ajax_object', [ 'ajax_url' => admin_url( 'admin-ajax.php' ) ] );
    
    
    jQuery.getJSON(
    	ajax_object.ajax_url,
    	...
    );
    
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Small improvement’ is closed to new replies.