The ajax_url
should be admin_url( 'admin-ajax.php' )
and not plugins_url( 'plugin.php', __FILE__ )
when you localize your js variables.
The ajax_url
should be admin_url( 'admin-ajax.php' )
and not plugins_url( 'plugin.php', __FILE__ )
when you localize your js variables.