Closed frnsys closed 7 years ago
The script needs to be enqueued. ( https://developer.wordpress.org/reference/functions/wp_enqueue_script/ ).
JQuery needs to be used in compatibility mode or need to map JQuery
to $
. (https://premium.wpmudev.org/blog/adding-jquery-scripts-wordpress/).
And the data needs to be made available to the theme. This can be done using the wp_head
function. https://codex.wordpress.org/Plugin_API/Action_Reference/wp_head . Some practical examples: http://wordpress.stackexchange.com/questions/119573/is-it-possible-to-use-wp-localize-script-to-create-global-js-variables-without-a/119736
I merge into 1.0.9Authentication branch.
Setting up a subscriber authentication system which authenticates via the TNI subscriber system