Lubinik Learning

Training mode

WordPress Intermediate Assessment

Time remaining:

0 / 50 answered

  1. 1. Which file is essential for WordPress to identify an ordinary child theme?

    Which file is essential for WordPress to identify an ordinary child theme?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  2. 2. What does the WordPress main query represent?

    What does the WordPress main query represent?
    Hint

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

  3. 3. What is a taxonomy term?

    What is a taxonomy term?
    Hint

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

  4. 4. When should a custom taxonomy normally be registered?

    Choose the conventional WordPress lifecycle hook.

    When should a custom taxonomy normally be registered?
    Hint

    It is the same common lifecycle point used for CPT registration.

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

  6. 6. After WordPress resolves the request, what does the template loader do?

    After WordPress resolves the request, what does the template loader do?
    Hint

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

  7. 7. Why check the expected HTTP method in a form handler?

    Why check the expected HTTP method in a form handler?
    Hint

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

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

  9. 9. What does date_query filter by?

    What does date_query filter by?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  10. 10. What is a good use for a transient?

    What is a good use for a transient?
    Hint

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

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

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

  13. 13. Why register post meta with register_post_meta() or register_meta()?

    Why register post meta with register_post_meta() or register_meta()?
    Hint

    Think schema and access rules.

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

  15. 15. Are the parent and child theme functions.php files merged like CSS?

    Are the parent and child theme functions.php files merged like CSS?
    Hint

    A child functions.php does not replace its parent counterpart.

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

  17. 17. Which argument performs the ordinary WordPress text search?

    Which argument performs the ordinary WordPress text search?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  18. 18. What do permalink rewrite rules help WordPress do?

    What do permalink rewrite rules help WordPress do?
    Hint

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

  19. 19. Which action is commonly used to register plugin administration menu pages?

    Which action is commonly used to register plugin administration menu pages?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  20. 20. When is a real system scheduler preferable to traffic-driven WP-Cron?

    When is a real system scheduler preferable to traffic-driven WP-Cron?
    Hint

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

  21. 21. What normally belongs inside wp-content?

    What normally belongs inside wp-content?
    Hint

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

  22. 22. Which checks belong in a save_post metabox handler?

    Select all generally appropriate safeguards.

    Which checks belong in a save_post metabox handler?
    Hint

    Consider request intent, autosaves, and authorization.

  23. 23. What does get_posts() provide?

    What does get_posts() provide?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  24. 24. Which function returns the parent theme directory URL?

    Which function returns the parent theme directory URL?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  25. 25. How should a plugin handle a missing required dependency?

    How should a plugin handle a missing required dependency?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  26. 26. What is register_activation_hook() used for?

    What is register_activation_hook() used for?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

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

  28. 28. How are callbacks with the same priority generally ordered?

    How are callbacks with the same priority generally ordered?
    Hint

    Identify the role of the WordPress function or extension point.

  29. 29. What is the default hook priority when none is specified?

    What is the default hook priority when none is specified?
    Hint

    Identify the role of the WordPress function or extension point.

  30. 30. What does the supports argument define?

    What does the supports argument define?
    Hint

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

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

  32. 32. When is wp_kses_post() appropriate?

    When is wp_kses_post() appropriate?
    Hint

    It is an allow-list HTML filter.

  33. 33. What is an attachment in WordPress?

    What is an attachment in WordPress?
    Hint

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

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

  35. 35. Who can normally view a private post?

    Who can normally view a private post?
    Hint

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

  36. 36. How should dynamic values be included in a custom SQL query with $wpdb?

    The query contains values supplied at runtime.

    How should dynamic values be included in a custom SQL query with $wpdb?
    Hint

    Do not concatenate untrusted values into the SQL string.

  37. 37. Which task is most suitable for the shutdown hook?

    Which task is most suitable for the shutdown hook?
    Hint

    It is late in the request.

  38. 38. Which hook is normally used for theme setup?

    Which hook is normally used for theme setup?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  39. 39. What is a term?

    What is a term?
    Hint

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

  40. 40. Why is a valid nonce not enough to authorize a change?

    Why is a valid nonce not enough to authorize a change?
    Hint

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

  41. 41. How do child and parent functions.php files behave?

    How do child and parent functions.php files behave?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  42. 42. What does check_admin_referer() help verify?

    What does check_admin_referer() help verify?
    Hint

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

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

  44. 44. Which classic template commonly displays one blog post?

    Which classic template commonly displays one blog post?
    Hint

    Separate presentation responsibilities from reusable site functionality.

  45. 45. What does settings_fields( $group ) print?

    What does settings_fields( $group ) print?
    Hint

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

  46. 46. In a REST endpoint, where should resource-specific authorization be enforced?

    In a REST endpoint, where should resource-specific authorization be enforced?
    Hint

    The server must enforce authorization before the main callback.

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

  48. 48. What does tax_query filter by?

    What does tax_query filter by?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  49. 49. Why is init commonly used for rewrite-related registrations?

    Why is init commonly used for rewrite-related registrations?
    Hint

    Registration and flushing are different operations.

  50. 50. What does the_permalink() output?

    What does the_permalink() output?
    Hint

    Identify the role of the WordPress function or extension point.