To complete a simple Ajax call within the administration panels, we will need a minimum of three functions. Here are the functions used in the sample code:

  • _wp_display_content() — responsible for displaying the form or content, and the nonce field.
  • _wp_display_content_js() — displays the JavaScript code for our Ajax call in the footer.
  • _wp_sample_ajax_call() — completes security check for the Ajax request, processes the request, and returns a response.

Read the rest of this entry »

Share