Lubinik Learning

Training mode

Hooks for Beginners

Time remaining:

0 / 20 answered

  1. 1. What is a WordPress hook?

    What is a WordPress hook?
    Hint

    Identify the role of the WordPress function or extension point.

  2. 2. What are the two main kinds of WordPress hooks?

    What are the two main kinds of WordPress hooks?
    Hint

    Identify the role of the WordPress function or extension point.

  3. 3. What is an action used for?

    What is an action used for?
    Hint

    Identify the role of the WordPress function or extension point.

  4. 4. What is a filter used for?

    What is a filter used for?
    Hint

    Identify the role of the WordPress function or extension point.

  5. 5. What is a hook callback?

    What is a hook callback?
    Hint

    Identify the role of the WordPress function or extension point.

  6. 6. Which function registers a callback on an action?

    Which function registers a callback on an action?
    Hint

    Identify the role of the WordPress function or extension point.

  7. 7. What does do_action() do?

    What does do_action() do?
    Hint

    Identify the role of the WordPress function or extension point.

  8. 8. Which function registers a callback on a filter?

    Which function registers a callback on a filter?
    Hint

    Identify the role of the WordPress function or extension point.

  9. 9. What does apply_filters() do?

    What does apply_filters() do?
    Hint

    Identify the role of the WordPress function or extension point.

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

  11. 11. How does WordPress connect a registered callback to a fired hook?

    How does WordPress connect a registered callback to a fired hook?
    Hint

    Identify the role of the WordPress function or extension point.

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

  13. 13. Which callback runs first on the same hook?

    Which callback runs first on the same hook?
    Hint

    Identify the role of the WordPress function or extension point.

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

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

  16. 16. Why can an inline anonymous hook callback be difficult to remove later?

    Why can an inline anonymous hook callback be difficult to remove later?
    Hint

    Identify the role of the WordPress function or extension point.

  17. 17. Where should functionality that must survive a theme change usually be hooked?

    Where should functionality that must survive a theme change usually be hooked?
    Hint

    Identify the role of the WordPress function or extension point.

  18. 18. Which hook is designed for registering theme features?

    Which hook is designed for registering theme features?
    Hint

    Identify the role of the WordPress function or extension point.

  19. 19. What is init commonly used for?

    What is init commonly used for?
    Hint

    Identify the role of the WordPress function or extension point.

  20. 20. Why should a developer inspect hook documentation before registering a callback?

    Why should a developer inspect hook documentation before registering a callback?
    Hint

    Identify the role of the WordPress function or extension point.