Lubinik Learning

Training mode

AJAX & REST API

Time remaining:

0 / 20 answered

  1. 1. Which endpoint receives traditional WordPress AJAX requests?

    Which endpoint receives traditional WordPress AJAX requests?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  2. 2. Which request value selects a traditional AJAX handler?

    Which request value selects a traditional AJAX handler?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  3. 3. Which hook handles authenticated AJAX action save_note?

    Which hook handles authenticated AJAX action save_note?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  4. 4. Which additional hook is needed when guests may call save_note?

    Which additional hook is needed when guests may call save_note?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  5. 5. How should a frontend script receive the AJAX URL and nonce?

    How should a frontend script receive the AJAX URL and nonce?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  6. 6. Which helper verifies an AJAX nonce and stops on failure by default?

    Which helper verifies an AJAX nonce and stops on failure by default?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  7. 7. What must still happen after AJAX nonce verification for a privileged change?

    What must still happen after AJAX nonce verification for a privileged change?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  8. 8. Which helper returns a standardized successful JSON response?

    Which helper returns a standardized successful JSON response?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  9. 9. Which helper returns a standardized error JSON response?

    Which helper returns a standardized error JSON response?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  10. 10. On which hook should REST routes be registered?

    On which hook should REST routes be registered?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  11. 11. Why use a namespace such as my-plugin/v1?

    Why use a namespace such as my-plugin/v1?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  12. 12. What does the methods route argument define?

    What does the methods route argument define?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  13. 13. What is permission_callback responsible for?

    What is permission_callback responsible for?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  14. 14. How should a deliberately public REST route express permission?

    How should a deliberately public REST route express permission?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  15. 15. What can REST route argument definitions provide?

    What can REST route argument definitions provide?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  16. 16. What object is normally passed to a REST endpoint callback?

    What object is normally passed to a REST endpoint callback?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  17. 17. Why return WP_REST_Response?

    Why return WP_REST_Response?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  18. 18. What can a REST callback return for an application error?

    What can a REST callback return for an application error?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  19. 19. What header commonly carries the REST nonce for cookie-authenticated requests?

    What header commonly carries the REST nonce for cookie-authenticated requests?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.

  20. 20. When is a custom REST route generally preferable to admin-ajax?

    When is a custom REST route generally preferable to admin-ajax?
    Hint

    Consider lifecycle, authorization, failure and long-term maintenance.