dimanche 27 mars 2016

wp-login send data to JS

I know that in order to send data from PHP to JS, you have to enqueue the JS and the localize it in order to send the data, however, in the login page (wp-login.php), using the login_enqueue_scripts, works correctly, but when using wp_localize_script, seems not to send the data.

What is the correct approach here?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire