Lubinik Learning

Training mode

WordPress Intermediate Assessment

Time remaining:

0 / 50 answered

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

  2. 2. What does relation control in a WP_Query meta_query?

    The query contains more than one metadata condition.

    What does relation control in a WP_Query meta_query?
    Hint

    Think of boolean logic between clauses.

  3. 3. Why use plugin path and URL helper functions rather than hard-coded installation paths?

    Why use plugin path and URL helper functions rather than hard-coded installation paths?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

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

  5. 5. Why should a theme enqueue styles and scripts?

    Why should a theme enqueue styles and scripts?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  6. 6. How can a child stylesheet reliably load after a parent stylesheet?

    How can a child stylesheet reliably load after a parent stylesheet?
    Hint

    Separate presentation responsibilities from reusable site functionality.

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

  8. 8. What does post_class() help add?

    What does post_class() help add?
    Hint

    Identify the role of the WordPress function or extension point.

  9. 9. What is the plugin main file?

    What is the plugin main file?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

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

  11. 11. Which argument filters by publication status?

    Which argument filters by publication status?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  12. 12. Which callback runs first on the same hook?

    Which callback runs first on the same hook?
    Hint

    Identify the role of the WordPress function or extension point.

  13. 13. Why can an inline anonymous hook callback be difficult to remove later?

    Why can an inline anonymous hook callback be difficult to remove later?
    Hint

    Identify the role of the WordPress function or extension point.

  14. 14. What does the third get_post_meta() argument control?

    What does the third get_post_meta() argument control?
    Hint

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

  15. 15. What are the two main kinds of WordPress hooks?

    What are the two main kinds of WordPress hooks?
    Hint

    Identify the role of the WordPress function or extension point.

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

  17. 17. Why return WP_REST_Response?

    Why return WP_REST_Response?
    Hint

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

  18. 18. What does CMS mean?

    What does CMS mean?
    Hint

    Start with the everyday meaning of the WordPress term.

  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. How should a theme add a contextual CSS class to the body element?

    How should a theme add a contextual CSS class to the body element?
    Hint

    There is a dedicated filter for the generated class list.

  21. 21. Why should a post-type key be short, stable and uniquely prefixed?

    Why should a post-type key be short, stable and uniquely prefixed?
    Hint

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

  22. 22. Why keep a stored plugin data version?

    Why keep a stored plugin data version?
    Hint

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

  23. 23. Why should a developer avoid editing WordPress core files?

    Why should a developer avoid editing WordPress core files?
    Hint

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

  24. 24. What is the essential difference between a WordPress action and a filter?

    Choose the statement that correctly describes the contract expected by WordPress.

    What is the essential difference between a WordPress action and a filter?
    Hint

    Ask yourself whether the received value must continue through the execution chain.

  25. 25. What makes a PHP file discoverable as a WordPress plugin?

    What makes a PHP file discoverable as a WordPress plugin?
    Hint

    Look at how the Plugins screen discovers files.

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

  27. 27. What is an action used for?

    What is an action used for?
    Hint

    Identify the role of the WordPress function or extension point.

  28. 28. Which built-in taxonomy is hierarchical by default?

    Which built-in taxonomy is hierarchical by default?
    Hint

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

  29. 29. Which template is the most specific conventional file for a single book CPT entry?

    The registered post type slug is book.

    Which template is the most specific conventional file for a single book CPT entry?
    Hint

    The template hierarchy includes the post type slug.

  30. 30. What is a plugin text domain used for?

    What is a plugin text domain used for?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  31. 31. What does get_posts() provide?

    What does get_posts() provide?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  32. 32. Which function registers a Custom Post Type?

    Which function registers a Custom Post Type?
    Hint

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

  33. 33. What is WordPress?

    What is WordPress?
    Hint

    Start with the everyday meaning of the WordPress term.

  34. 34. Inside a shared callback, which function identifies the hook currently being processed?

    Inside a shared callback, which function identifies the hook currently being processed?
    Hint

    Useful when one callback handles several hooks.

  35. 35. Which core file establishes many WordPress constants and loads early bootstrap components?

    Which core file establishes many WordPress constants and loads early bootstrap components?
    Hint

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

  36. 36. Which function should authorize whether the current user may perform a WordPress operation?

    Choose the function intended for capability checks.

    Which function should authorize whether the current user may perform a WordPress operation?
    Hint

    Roles group capabilities, but code should generally check the required capability.

  37. 37. How should a plugin react when a required dependency is unavailable?

    How should a plugin react when a required dependency is unavailable?
    Hint

    Administrators need a recoverable state.

  38. 38. Why is a valid WordPress nonce not sufficient authorization?

    Why is a valid WordPress nonce not sufficient authorization?
    Hint

    Intent and permission are separate questions.

  39. 39. What does the supports argument define?

    What does the supports argument define?
    Hint

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

  40. 40. What is a Custom Post Type?

    What is a Custom Post Type?
    Hint

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

  41. 41. Why can a WP-Cron event run later than scheduled?

    Why can a WP-Cron event run later than scheduled?
    Hint

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

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

  43. 43. What does get_template_directory() return when a child theme is active?

    What does get_template_directory() return when a child theme is active?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  44. 44. What is the broad responsibility of wp-settings.php?

    What is the broad responsibility of wp-settings.php?
    Hint

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

  45. 45. Which order best describes a secure form handler?

    Which order best describes a secure form handler?
    Hint

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

  46. 46. Where should plugin configuration usually be managed?

    Where should plugin configuration usually be managed?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  47. 47. What should a setting sanitization callback return?

    What should a setting sanitization callback return?
    Hint

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

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

    What does get_sidebar() normally load?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  49. 49. Why do plugin PHP files often begin with an ABSPATH guard?

    Why do plugin PHP files often begin with an ABSPATH guard?
    Hint

    ABSPATH is defined by WordPress.

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