AJAX Background Post

Ensure jquery is activated In your function that hooks “wp_enqueue_scripts”, add this: Simple Working Example In your php (html) page In functions.php

Read More

AJAX Dynamic Page Content

Simple ajax call to dynamically load page content, solving issues of page caching etc. Ensure jquery is activated In your function that hooks “wp_enqueue_scripts”, add this: HTML AJAX Callback

Read More

Creating an API URL

You may want a url to be used for say remote devices to connect to your site and pass information using say URL parameters and a response string. You can create a special url and trap it using the code below. However for it to work in all instances you need to have a real […]

Read More

Nonce Functions

wp_create_nonce() and wp_verify_nonce() use the logged in user ID and will not work for other users or if the user has logged out. MySiteSomeUniqueNonceNameThis field is actually defined as an action name, so you can set this differently per form on your site, so that it becomes individual form action based. However, from a basic […]

Read More