Lubinik Learning

Training mode

WordPress Advanced Interview

Time remaining:

0 / 60 answered

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

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

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

  4. 4. What is a safe production-debugging principle?

    What is a safe production-debugging principle?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

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

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

  7. 7. What does register_setting() define?

    What does register_setting() define?
    Hint

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

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

  9. 9. What is the main limitation of relying on wp_cache_set() for long-term persistence?

    What is the main limitation of relying on wp_cache_set() for long-term persistence?
    Hint

    The default object cache is request-scoped.

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

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

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

  13. 13. What does disabling components one at a time help determine?

    What does disabling components one at a time help determine?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  14. 14. A template uses query_posts() to show featured content. What is preferable?

    A template uses query_posts() to show featured content. What is preferable?
    Hint

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

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

  16. 16. What makes a safe data migration?

    What makes a safe data migration?
    Hint

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

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

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

  19. 19. Where should API secrets generally not be exposed?

    Where should API secrets generally not be exposed?
    Hint

    Frontend code cannot keep a secret.

  20. 20. What is a secondary query?

    What is a secondary query?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  21. 21. What should follow a secondary WP_Query loop that called the_post()?

    What should follow a secondary WP_Query loop that called the_post()?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  22. 22. What is the safest first check before modifying the public main query in pre_get_posts?

    What is the safest first check before modifying the public main query in pre_get_posts?
    Hint

    Avoid changing admin and secondary queries.

  23. 23. How is a custom WP_Query commonly created?

    How is a custom WP_Query commonly created?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

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

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

  26. 26. What does the block.json render property identify?

    What does the block.json render property identify?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

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

  28. 28. What is a drawback of calling ServerSideRender for every small editor interaction?

    What is a drawback of calling ServerSideRender for every small editor interaction?
    Hint

    Consider editor responsiveness.

  29. 29. Why preserve backward compatibility?

    Why preserve backward compatibility?
    Hint

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

  30. 30. For cookie-authenticated REST requests from WordPress admin, which header commonly carries the REST nonce?

    For cookie-authenticated REST requests from WordPress admin, which header commonly carries the REST nonce?
    Hint

    wp.apiFetch middleware can supply it.

  31. 31. How should a LIKE search value be prepared with $wpdb?

    How should a LIKE search value be prepared with $wpdb?
    Hint

    LIKE escaping and SQL placeholders solve different problems.

  32. 32. What does orderby control?

    What does orderby control?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  33. 33. What is a custom taxonomy?

    What is a custom taxonomy?
    Hint

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

  34. 34. Which wp_enqueue_script() practices are correct?

    Select all correct answers.

    Which wp_enqueue_script() practices are correct?
    Hint

    Dependencies and versioning are part of the registration contract.

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

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

  37. 37. What does locate_template() do?

    What does locate_template() do?
    Hint

    It resolves a physical template file.

  38. 38. On which hook should custom REST API routes be registered?

    On which hook should custom REST API routes be registered?
    Hint

    The hook is dedicated to REST route registration.

  39. 39. Which function sanitizes an email address?

    Which function sanitizes an email address?
    Hint

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

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

  41. 41. When is do_action_ref_array() useful?

    When is do_action_ref_array() useful?
    Hint

    Compare it with call_user_func_array().

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

  43. 43. Which dependency direction is preferable?

    Which dependency direction is preferable?
    Hint

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

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

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

  46. 46. What is required before using featured images as a declared theme feature?

    What is required before using featured images as a declared theme feature?
    Hint

    Declare support during theme setup.

  47. 47. A custom order workflow is implemented only in a child theme. What is the issue?

    A custom order workflow is implemented only in a child theme. What is the issue?
    Hint

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

  48. 48. What should a plugin bootstrap file mainly do?

    What should a plugin bootstrap file mainly do?
    Hint

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

  49. 49. Which hooks handle authenticated custom form requests sent to admin-post.php?

    Which hooks handle authenticated custom form requests sent to admin-post.php?
    Hint

    It is the non-AJAX administrative form endpoint.

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

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

  52. 52. Which argument filters by publication status?

    Which argument filters by publication status?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  53. 53. Which helper sends a JSON success response and terminates a WordPress AJAX request?

    Which helper sends a JSON success response and terminates a WordPress AJAX request?
    Hint

    WordPress provides paired success and error helpers.

  54. 54. What does a transient expiration guarantee?

    What does a transient expiration guarantee?
    Hint

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

  55. 55. What does meta_query filter by?

    What does meta_query filter by?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  56. 56. What should be treated as a plugin public API?

    What should be treated as a plugin public API?
    Hint

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

  57. 57. A plugin deletes all data on deactivation. What is wrong?

    A plugin deletes all data on deactivation. What is wrong?
    Hint

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

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

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

  60. 60. Which JavaScript function registers a block type?

    Which JavaScript function registers a block type?
    Hint

    Choose the answer that reflects current WordPress engineering practice.