Lubinik Learning

Training mode

WordPress Intermediate Assessment

Time remaining:

0 / 50 answered

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

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

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

  4. 4. How should code avoid scheduling duplicate recurring events?

    How should code avoid scheduling duplicate recurring events?
    Hint

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

  5. 5. What is a WordPress hook?

    What is a WordPress hook?
    Hint

    Identify the role of the WordPress function or extension point.

  6. 6. What does a post author relationship identify?

    What does a post author relationship identify?
    Hint

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

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

  8. 8. Which function returns a post title instead of directly displaying it?

    Which function returns a post title instead of directly displaying it?
    Hint

    Identify the role of the WordPress function or extension point.

  9. 9. When is do_action_ref_array() useful?

    When is do_action_ref_array() useful?
    Hint

    Compare it with call_user_func_array().

  10. 10. What does locate_template() do?

    What does locate_template() do?
    Hint

    It resolves a physical template file.

  11. 11. What is a post excerpt?

    What is a post excerpt?
    Hint

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

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

  13. 13. How does a scheduled WP-Cron event execute application code?

    How does a scheduled WP-Cron event execute application code?
    Hint

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

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

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

    What does post_class() help add?
    Hint

    Identify the role of the WordPress function or extension point.

  16. 16. What does meta_query filter by?

    What does meta_query filter by?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  17. 17. Which function is suitable for sanitizing a simple one-line text field?

    Which function is suitable for sanitizing a simple one-line text field?
    Hint

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

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

  19. 19. Why redirect after a successful POST handler?

    Why redirect after a successful POST handler?
    Hint

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

  20. 20. Why specify accepted arguments when registering a callback?

    Why specify accepted arguments when registering a callback?
    Hint

    Identify the role of the WordPress function or extension point.

  21. 21. What is a WordPress slug?

    What is a WordPress slug?
    Hint

    Start with the everyday meaning of the WordPress term.

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

    Which endpoint receives traditional WordPress AJAX requests?
    Hint

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

  23. 23. Which statement best describes posts and pages?

    Which statement best describes posts and pages?
    Hint

    Start with the everyday meaning of the WordPress term.

  24. 24. Why pass an object ID when checking a meta capability such as edit_post?

    Why pass an object ID when checking a meta capability such as edit_post?
    Hint

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

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

  26. 26. What happens if a filter callback forgets to return the filtered value?

    What happens if a filter callback forgets to return the filtered value?
    Hint

    Actions may ignore return values; filters may not.

  27. 27. What is the main role of wp-admin?

    What is the main role of wp-admin?
    Hint

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

  28. 28. What does a transient expiration guarantee?

    What does a transient expiration guarantee?
    Hint

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

  29. 29. Why should plugin post types, taxonomies, options and functions use a unique prefix or namespace?

    Why should plugin post types, taxonomies, options and functions use a unique prefix or namespace?
    Hint

    Several plugins share the same runtime.

  30. 30. What is WordPress?

    What is WordPress?
    Hint

    Start with the everyday meaning of the WordPress term.

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

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

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

    What can REST route argument definitions provide?
    Hint

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

  34. 34. How do plugins usually integrate with WordPress behavior?

    How do plugins usually integrate with WordPress behavior?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  35. 35. What does absint() produce?

    What does absint() produce?
    Hint

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

  36. 36. What does order normally specify?

    What does order normally specify?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  37. 37. What can a Subscriber normally do on a basic site?

    What can a Subscriber normally do on a basic site?
    Hint

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

  38. 38. How should validation failure normally be handled?

    How should validation failure normally be handled?
    Hint

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

  39. 39. What is wp-includes primarily for?

    What is wp-includes primarily for?
    Hint

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

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

  41. 41. Which style.css header links a child theme to its parent?

    The parent theme directory is named lubinik-theme.

    Which style.css header links a child theme to its parent?
    Hint

    The value must match the parent directory name.

  42. 42. What does get_posts() provide?

    What does get_posts() provide?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

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

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

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

    Which function returns the parent theme directory URL?
    Hint

    Separate presentation responsibilities from reusable site functionality.

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

  47. 47. Which methods drive a Loop on a WP_Query object?

    Which methods drive a Loop on a WP_Query object?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  48. 48. What does the public argument broadly influence?

    What does the public argument broadly influence?
    Hint

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

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

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