Lubinik Learning

Training mode

Plugins from Zero

Time remaining:

0 / 20 answered

  1. 1. What is the purpose of a WordPress plugin?

    What is the purpose of a WordPress plugin?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  2. 2. Where are ordinary WordPress plugins stored by default?

    Where are ordinary WordPress plugins stored by default?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  3. 3. What lets WordPress recognize a PHP file as a plugin?

    What lets WordPress recognize a PHP file as a plugin?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  4. 4. What is the plugin main file?

    What is the plugin main file?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  5. 5. What happens when an administrator activates a plugin?

    What happens when an administrator activates a plugin?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  6. 6. Does deactivating a plugin normally delete its files and data?

    Does deactivating a plugin normally delete its files and data?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  7. 7. When should permanent plugin cleanup normally occur?

    When should permanent plugin cleanup normally occur?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  8. 8. What is register_activation_hook() used for?

    What is register_activation_hook() used for?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  9. 9. What is register_deactivation_hook() used for?

    What is register_deactivation_hook() used for?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

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

  11. 11. Why should plugin functions and identifiers use a unique prefix or namespace?

    Why should plugin functions and identifiers use a unique prefix or namespace?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  12. 12. Why might a plugin file check whether ABSPATH is defined?

    Why might a plugin file check whether ABSPATH is defined?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  13. 13. Why use plugin path and URL helper functions rather than hard-coded installation paths?

    Why use plugin path and URL helper functions rather than hard-coded installation paths?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  14. 14. How should a plugin add frontend JavaScript or CSS?

    How should a plugin add frontend JavaScript or CSS?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  15. 15. Which action is commonly used to register plugin administration menu pages?

    Which action is commonly used to register plugin administration menu pages?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  16. 16. Where should plugin configuration usually be managed?

    Where should plugin configuration usually be managed?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  17. 17. What is a plugin text domain used for?

    What is a plugin text domain used for?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  18. 18. How should a plugin handle a missing required dependency?

    How should a plugin handle a missing required dependency?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  19. 19. Why should plugin updates preserve backward compatibility or provide migrations?

    Why should plugin updates preserve backward compatibility or provide migrations?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  20. 20. Which feature most clearly belongs in a plugin?

    Which feature most clearly belongs in a plugin?
    Hint

    Identify the WordPress API responsibility before considering implementation details.