Lubinik Learning

Training mode

WordPress Advanced Interview

Time remaining:

0 / 60 answered

  1. 1. Which statements about WordPress nonces are correct?

    Select all correct answers.

    Which statements about WordPress nonces are correct?
    Hint

    A nonce verifies intent, not the user’s role or capabilities.

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

  3. 3. What format must a block name use?

    What format must a block name use?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  4. 4. What does the accepted_args parameter of add_filter() control?

    What does the accepted_args parameter of add_filter() control?
    Hint

    It describes callback input, not execution order.

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

  6. 6. Why should custom REST routes use a versioned namespace such as my-plugin/v1?

    Why should custom REST routes use a versioned namespace such as my-plugin/v1?
    Hint

    Routes are public identifiers.

  7. 7. A plugin calls flush_rewrite_rules() on every init. What is wrong?

    A plugin calls flush_rewrite_rules() on every init. What is wrong?
    Hint

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

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

  9. 9. What should a developer remember about WP-Cron timing?

    What should a developer remember about WP-Cron timing?
    Hint

    It is not the operating system cron daemon.

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

  11. 11. What relationship does wp_set_object_terms() manage?

    What relationship does wp_set_object_terms() manage?
    Hint

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

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

  13. 13. Which API should plugin code use to hash a WordPress-compatible password?

    Which API should plugin code use to hash a WordPress-compatible password?
    Hint

    Do not invent password storage.

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

  15. 15. Which PHP function registers a block from its metadata directory?

    Which PHP function registers a block from its metadata directory?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  16. 16. What is permission_callback responsible for?

    What is permission_callback responsible for?
    Hint

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

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

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

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

    What should a setting sanitization callback return?
    Hint

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

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

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

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

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

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

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

  24. 24. Why must code treat get_transient() returning false carefully?

    Why must code treat get_transient() returning false carefully?
    Hint

    Avoid caching a literal false when you must distinguish it.

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

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

  27. 27. On which hook are Custom Post Types normally registered?

    On which hook are Custom Post Types normally registered?
    Hint

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

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

  29. 29. Which function returns the active theme directory, including the child theme when one is active?

    Which function returns the active theme directory, including the child theme when one is active?
    Hint

    Stylesheet and template can mean child and parent.

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

  31. 31. What makes a safe data migration?

    What makes a safe data migration?
    Hint

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

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

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

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

    What is a safe production-debugging principle?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  35. 35. What does has_filter() return when a specific callback is registered?

    What does has_filter() return when a specific callback is registered?
    Hint

    The return value must distinguish priorities.

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

  37. 37. On the frontend, how should a plugin usually provide admin-ajax.php and nonce values to its script?

    On the frontend, how should a plugin usually provide admin-ajax.php and nonce values to its script?
    Hint

    The server knows the correct URL and current nonce.

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

  39. 39. What is a custom taxonomy?

    What is a custom taxonomy?
    Hint

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

  40. 40. What is an N+1 query problem?

    What is an N+1 query problem?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  41. 41. What must still happen after AJAX nonce verification for a privileged change?

    What must still happen after AJAX nonce verification for a privileged change?
    Hint

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

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

  43. 43. What should happen before a template receives data?

    What should happen before a template receives data?
    Hint

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

  44. 44. What is dbDelta() designed to help with?

    What is dbDelta() designed to help with?
    Hint

    It is commonly used during versioned migrations.

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

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

  47. 47. Which function loads a reusable theme template part while allowing a specialized variant?

    Which function loads a reusable theme template part while allowing a specialized variant?
    Hint

    Think of template-parts/content-single.php.

  48. 48. What do post-type labels control?

    What do post-type labels control?
    Hint

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

  49. 49. What may save return for a fully dynamic block?

    What may save return for a fully dynamic block?
    Hint

    Choose the answer that reflects current WordPress engineering practice.

  50. 50. What is WordPress metadata?

    What is WordPress metadata?
    Hint

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

  51. 51. How should generated/scaffolded code be maintained?

    How should generated/scaffolded code be maintained?
    Hint

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

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

    What does settings_fields( $group ) print?
    Hint

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

  53. 53. A static block changes save markup and old posts show validation errors. What was missing?

    A static block changes save markup and old posts show validation errors. What was missing?
    Hint

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

  54. 54. Which function registers a stylesheet for a specific block type?

    Which function registers a stylesheet for a specific block type?
    Hint

    It can avoid loading block CSS where it is not needed.

  55. 55. Which requirement is a good candidate for a Custom Post Type?

    Which requirement is a good candidate for a Custom Post Type?
    Hint

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

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

  57. 57. Why return WP_REST_Response?

    Why return WP_REST_Response?
    Hint

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

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

  59. 59. What should diagnostic logging include?

    What should diagnostic logging include?
    Hint

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

  60. 60. What is a risk of calling a global service locator everywhere?

    What is a risk of calling a global service locator everywhere?
    Hint

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