thenewinquiry / tni-core-functionality

Contains the site's core functionality.
GNU General Public License v2.0
2 stars 0 forks source link

Subscriber authentication system #3

Closed frnsys closed 7 years ago

frnsys commented 7 years ago

Setting up a subscriber authentication system which authenticates via the TNI subscriber system

misfist commented 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

misfist commented 7 years ago

I merge into 1.0.9Authentication branch.