Lubinik Learning

Training mode

WordPress Advanced Interview

Time remaining:

0 / 60 answered

  1. 1. What does posts_per_page => -1 request from WP_Query?

    What does posts_per_page => -1 request from WP_Query?
    Hint

    Use carefully on large datasets.

  2. 2. What is the primary role of block.json?

    What is the primary role of block.json?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  3. 3. What does absint() produce?

    What does absint() produce?
    Hint

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

  4. 4. What is editorStyle intended for?

    What is editorStyle intended for?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  5. 5. Why should SAVEQUERIES not remain enabled casually?

    Why should SAVEQUERIES not remain enabled casually?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  6. 6. A recurring event is scheduled on every request. What happens?

    A recurring event is scheduled on every request. What happens?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

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

  8. 8. Which function sanitizes an email address?

    Which function sanitizes an email address?
    Hint

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

  9. 9. What does a static block save function produce?

    What does a static block save function produce?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  10. 10. What is a feature flag useful for?

    What is a feature flag useful for?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  11. 11. Why centralize or structure hook registration?

    Why centralize or structure hook registration?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  12. 12. What completes a debugging cycle after implementing a fix?

    What completes a debugging cycle after implementing a fix?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  13. 13. Which WP_Query argument filters posts by taxonomy terms?

    Which WP_Query argument filters posts by taxonomy terms?
    Hint

    Metadata and taxonomy data use different query arguments.

  14. 14. What guarantee does a transient expiration provide?

    Consider external object caches as well as the database implementation.

    What guarantee does a transient expiration provide?
    Hint

    An expiration is a maximum lifetime, not a minimum lifetime.

  15. 15. How should server-side WordPress code treat submitted form data?

    How should server-side WordPress code treat submitted form data?
    Hint

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

  16. 16. What is WP_Query used for?

    What is WP_Query used for?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  17. 17. Why is total query count alone insufficient?

    Why is total query count alone insufficient?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

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

  19. 19. Why check $query->is_main_query() inside pre_get_posts?

    Why check $query->is_main_query() inside pre_get_posts?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  20. 20. What is the recommended role of block.json in modern block development?

    What is the recommended role of block.json in modern block development?
    Hint

    It is a manifest for a block.

  21. 21. What can a persistent object cache reduce?

    What can a persistent object cache reduce?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  22. 22. Which output-escaping pairs are appropriate for their context?

    Select all correct answers. The values are dynamic and are about to be rendered.

    Which output-escaping pairs are appropriate for their context?
    Hint

    Visible HTML text and a URL attribute require different escaping functions.

  23. 23. A save_post callback writes metadata on every invocation. What guards are needed?

    A save_post callback writes metadata on every invocation. What guards are needed?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  24. 24. What does update_post_meta() do when the meta key does not yet exist?

    What does update_post_meta() do when the meta key does not yet exist?
    Hint

    The function supports both creation and update.

  25. 25. How should configuration and secrets differ?

    How should configuration and secrets differ?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  26. 26. A loop runs a custom query for each of 200 posts. What should review investigate?

    A loop runs a custom query for each of 200 posts. What should review investigate?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  27. 27. What problem does the WordPress Interactivity API address?

    What problem does the WordPress Interactivity API address?
    Hint

    It concerns frontend behavior in blocks.

  28. 28. What does get_posts() provide?

    What does get_posts() provide?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  29. 29. Why pass a default value to get_option()?

    Why pass a default value to get_option()?
    Hint

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

  30. 30. Why use cache groups with wp_cache_get() and wp_cache_set()?

    Why use cache groups with wp_cache_get() and wp_cache_set()?
    Hint

    A key may be common, such as count.

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

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

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

  34. 34. Why is wp_unslash() commonly used before sanitizing request data?

    Why is wp_unslash() commonly used before sanitizing request data?
    Hint

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

  35. 35. How does hook priority affect callbacks attached to the same hook?

    Assume all callbacks are valid and registered.

    How does hook priority affect callbacks attached to the same hook?
    Hint

    Compare numeric priority values.

  36. 36. What kind of data belongs in the Options API?

    What kind of data belongs in the Options API?
    Hint

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

  37. 37. What does orderby control?

    What does orderby control?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  38. 38. What does hierarchical mean for a taxonomy?

    What does hierarchical mean for a taxonomy?
    Hint

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

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

  40. 40. What should a plugin do with its recurring events on deactivation?

    What should a plugin do with its recurring events on deactivation?
    Hint

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

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

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

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

    Which endpoint receives traditional WordPress AJAX requests?
    Hint

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

  44. 44. What should diagnostic logging include?

    What should diagnostic logging include?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  45. 45. Where should a theme normally register support for features such as post thumbnails?

    Where should a theme normally register support for features such as post thumbnails?
    Hint

    The hook name describes theme initialization.

  46. 46. An AJAX mutation checks a nonce but no capability. Is it secure?

    An AJAX mutation checks a nonce but no capability. Is it secure?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

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

  48. 48. Why should an uploaded filename not be trusted as a filesystem path?

    Why should an uploaded filename not be trusted as a filesystem path?
    Hint

    Treat names as input.

  49. 49. Why inject collaborators instead of constructing them everywhere?

    Why inject collaborators instead of constructing them everywhere?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  50. 50. What is the purpose of deprecated block versions in registerBlockType settings?

    What is the purpose of deprecated block versions in registerBlockType settings?
    Hint

    Existing posts may contain old markup.

  51. 51. A dynamic block prints attributes directly in HTML. What is required?

    A dynamic block prints attributes directly in HTML. What is required?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  52. 52. What is often more efficient for a small related settings group?

    What is often more efficient for a small related settings group?
    Hint

    Keep unrelated or very large values separate.

  53. 53. Which argument selects one or more post types?

    Which argument selects one or more post types?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  54. 54. A service reads $_POST deep inside business logic. What is better?

    A service reads $_POST deep inside business logic. What is better?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  55. 55. Why can offset complicate ordinary pagination?

    Why can offset complicate ordinary pagination?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  56. 56. Why store a plugin database schema version?

    Why store a plugin database schema version?
    Hint

    Activation is not guaranteed to run during every deployment pattern.

  57. 57. When should a plugin normally flush rewrite rules for a new CPT?

    Choose the approach that avoids unnecessary work on normal requests.

    When should a plugin normally flush rewrite rules for a new CPT?
    Hint

    Flushing is expensive and registration must happen first.

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

  59. 59. What can a REST route argument definition provide?

    What can a REST route argument definition provide?
    Hint

    Separate input shape from authorization.

  60. 60. What do block attributes represent?

    What do block attributes represent?
    Hint

    They connect editor state with saved or rendered output.