Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: using ajax in a component

You’ve got it correct. The action from the js is taken and called with an action prefixed with “wp_ajax_”, just like above.

Check_ajax_referer() checks that a valid nonce was passed with the request – to find out more about nonces, see here.

Skip to toolbar