Lubinik Learning

Training mode

Options, Settings & WP-Cron

Time remaining:

0 / 20 answered

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

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

  3. 3. What does update_option() do when an option does not exist?

    What does update_option() do when an option does not exist?
    Hint

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

  4. 4. Which option is a reasonable autoload candidate?

    Which option is a reasonable autoload candidate?
    Hint

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

  5. 5. What is the risk of too much autoloaded option data?

    What is the risk of too much autoloaded option data?
    Hint

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

  6. 6. When is one structured array option preferable to many scalar options?

    When is one structured array option preferable to many scalar options?
    Hint

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

  7. 7. What does register_setting() define?

    What does register_setting() define?
    Hint

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

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

    What does settings_fields( $group ) print?
    Hint

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

  9. 9. What does do_settings_sections( $page ) render?

    What does do_settings_sections( $page ) render?
    Hint

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

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

    What should a setting sanitization callback return?
    Hint

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

  11. 11. Who normally submits forms through options.php?

    Who normally submits forms through options.php?
    Hint

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

  12. 12. Why keep a stored plugin data version?

    Why keep a stored plugin data version?
    Hint

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

  13. 13. What is a good use for a transient?

    What is a good use for a transient?
    Hint

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

  14. 14. What does a transient expiration guarantee?

    What does a transient expiration guarantee?
    Hint

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

  15. 15. Why can a WP-Cron event run later than scheduled?

    Why can a WP-Cron event run later than scheduled?
    Hint

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

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

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

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

  19. 19. Why may a long-running cron job need a lock or idempotency guard?

    Why may a long-running cron job need a lock or idempotency guard?
    Hint

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

  20. 20. When is a real system scheduler preferable to traffic-driven WP-Cron?

    When is a real system scheduler preferable to traffic-driven WP-Cron?
    Hint

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