Lubinik Learning

Training mode

WordPress Intermediate Assessment

Time remaining:

0 / 50 answered

  1. 1. What is the Site Editor used for with a block theme?

    What is the Site Editor used for with a block theme?
    Hint

    Start with the everyday meaning of the WordPress term.

  2. 2. 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.

  3. 3. What is the difference between authentication and authorization?

    What is the difference between authentication and authorization?
    Hint

    Place the concept in the WordPress request, content, or permission model.

  4. 4. What relationship does wp_set_object_terms() manage?

    What relationship does wp_set_object_terms() manage?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  5. 5. What should fields be set to when only post IDs are needed?

    What should fields be set to when only post IDs are needed?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  6. 6. Where should functionality that must survive a theme change usually be hooked?

    Where should functionality that must survive a theme change usually be hooked?
    Hint

    Identify the role of the WordPress function or extension point.

  7. 7. What is the difference between sanitizing and escaping data?

    Choose the most accurate statement for WordPress development.

    What is the difference between sanitizing and escaping data?
    Hint

    Think about when data enters the system and when it leaves for the browser.

  8. 8. What is a widget in classic WordPress terminology?

    What is a widget in classic WordPress terminology?
    Hint

    Start with the everyday meaning of the WordPress term.

  9. 9. Why does WordPress expose lifecycle hooks?

    Why does WordPress expose lifecycle hooks?
    Hint

    Place the concept in the WordPress request, content, or permission model.

  10. 10. What does a WordPress user role primarily define?

    What does a WordPress user role primarily define?
    Hint

    Start with the everyday meaning of the WordPress term.

  11. 11. Which function sanitizes a lowercase machine-readable key?

    Which function sanitizes a lowercase machine-readable key?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  12. 12. What does a navigation menu manage?

    What does a navigation menu manage?
    Hint

    Start with the everyday meaning of the WordPress term.

  13. 13. Where are ordinary plugins installed by default?

    Where are ordinary plugins installed by default?
    Hint

    Place the concept in the WordPress request, content, or permission model.

  14. 14. What does update_option() do when an option does not exist?

    What does update_option() do when an option does not exist?
    Hint

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

  15. 15. When is do_action_ref_array() useful?

    When is do_action_ref_array() useful?
    Hint

    Compare it with call_user_func_array().

  16. 16. When should permanent plugin cleanup normally occur?

    When should permanent plugin cleanup normally occur?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  17. 17. What is a benefit of checking object-level capabilities such as edit_post with an object ID?

    What is a benefit of checking object-level capabilities such as edit_post with an object ID?
    Hint

    Authorization may depend on the object owner and status.

  18. 18. What does do_action() do?

    What does do_action() do?
    Hint

    Identify the role of the WordPress function or extension point.

  19. 19. What is special about plugins placed in wp-content/mu-plugins?

    What is special about plugins placed in wp-content/mu-plugins?
    Hint

    Place the concept in the WordPress request, content, or permission model.

  20. 20. What is a WordPress hook?

    What is a WordPress hook?
    Hint

    Identify the role of the WordPress function or extension point.

  21. 21. Why might a template create a secondary WP_Query?

    Why might a template create a secondary WP_Query?
    Hint

    Identify the role of the WordPress function or extension point.

  22. 22. Why should plugin strings use a consistent text domain?

    Why should plugin strings use a consistent text domain?
    Hint

    It is part of internationalization calls.

  23. 23. What does get_header() normally load?

    What does get_header() normally load?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  24. 24. Which attack are WordPress nonces primarily intended to mitigate?

    Which attack are WordPress nonces primarily intended to mitigate?
    Hint

    They do not replace validation, escaping or authorization.

  25. 25. What does the_title() normally do inside The Loop?

    What does the_title() normally do inside The Loop?
    Hint

    Identify the role of the WordPress function or extension point.

  26. 26. What must a filter callback normally do?

    What must a filter callback normally do?
    Hint

    Identify the role of the WordPress function or extension point.

  27. 27. Which URL prefix normally exposes the WordPress REST API?

    Which URL prefix normally exposes the WordPress REST API?
    Hint

    Place the concept in the WordPress request, content, or permission model.

  28. 28. Which function prints a hidden nonce field for a form?

    Which function prints a hidden nonce field for a form?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  29. 29. What should a theme consider rendering when have_posts() is false?

    What should a theme consider rendering when have_posts() is false?
    Hint

    Identify the role of the WordPress function or extension point.

  30. 30. What does absint() produce?

    What does absint() produce?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  31. 31. What distinguishes an Editor from an Author?

    What distinguishes an Editor from an Author?
    Hint

    Place the concept in the WordPress request, content, or permission model.

  32. 32. 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.

  33. 33. When is a taxonomy usually preferable to plain metadata?

    When is a taxonomy usually preferable to plain metadata?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  34. 34. Which function both translates and safely escapes plain text for HTML output?

    Which function both translates and safely escapes plain text for HTML output?
    Hint

    Combine internationalization with context-appropriate output escaping.

  35. 35. What does get_sidebar() normally load?

    What does get_sidebar() normally load?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  36. 36. What lets WordPress recognize a PHP file as a plugin?

    What lets WordPress recognize a PHP file as a plugin?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  37. 37. What happens when a child theme provides header.php?

    What happens when a child theme provides header.php?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  38. 38. What does do_settings_sections( $page ) render?

    What does do_settings_sections( $page ) render?
    Hint

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

  39. 39. What happens when the child theme does not provide a requested template?

    What happens when the child theme does not provide a requested template?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  40. 40. 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.

  41. 41. What does a theme content width setting primarily communicate?

    What does a theme content width setting primarily communicate?
    Hint

    It concerns rendered media dimensions.

  42. 42. 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.

  43. 43. Should a child theme always assume WordPress automatically loads the parent stylesheet?

    Should a child theme always assume WordPress automatically loads the parent stylesheet?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  44. 44. Why call wp_reset_postdata() after a secondary loop that used the_post()?

    Why call wp_reset_postdata() after a secondary loop that used the_post()?
    Hint

    Identify the role of the WordPress function or extension point.

  45. 45. What does a WordPress nonce primarily verify?

    What does a WordPress nonce primarily verify?
    Hint

    Identify the data-model or security responsibility before choosing the API.

  46. 46. 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.

  47. 47. What is unusual about variable scope inside a plugin activation callback?

    What is unusual about variable scope inside a plugin activation callback?
    Hint

    Prefer explicit inputs and APIs.

  48. 48. What should still remain in a plugin rather than a child theme?

    What should still remain in a plugin rather than a child theme?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  49. 49. What must match when removing a callback with remove_action()?

    What must match when removing a callback with remove_action()?
    Hint

    A callback registered at priority 20 cannot be removed as though it used priority 10.

  50. 50. Why must classic themes call wp_head() and wp_footer()?

    Why must classic themes call wp_head() and wp_footer()?
    Hint

    Without them, enqueued assets may disappear.