Lubinik Learning

Training mode

Lubinik Metabox Lifecycle & Secure Saving

Time remaining:

0 / 20 answered

  1. 1. Which hook normally registers Lubinik addon metaboxes?

    Which hook normally registers Lubinik addon metaboxes?
    Hint

    Follow the request boundary and normalize each field by type.

  2. 2. What does the screen argument in add_meta_box identify?

    What does the screen argument in add_meta_box identify?
    Hint

    Follow the request boundary and normalize each field by type.

  3. 3. What does the normal context request?

    What does the normal context request?
    Hint

    Follow the request boundary and normalize each field by type.

  4. 4. What does high mean in add_meta_box arguments?

    What does high mean in add_meta_box arguments?
    Hint

    Follow the request boundary and normalize each field by type.

  5. 5. What is the metabox render callback responsible for?

    What is the metabox render callback responsible for?
    Hint

    Follow the request boundary and normalize each field by type.

  6. 6. Why call wp_nonce_field() inside the box?

    Why call wp_nonce_field() inside the box?
    Hint

    Follow the request boundary and normalize each field by type.

  7. 7. What must wp_verify_nonce receive?

    What must wp_verify_nonce receive?
    Hint

    Follow the request boundary and normalize each field by type.

  8. 8. What should a save handler do if its nonce field is absent?

    What should a save handler do if its nonce field is absent?
    Hint

    Follow the request boundary and normalize each field by type.

  9. 9. What should happen when nonce verification fails?

    What should happen when nonce verification fails?
    Hint

    Follow the request boundary and normalize each field by type.

  10. 10. Does a valid nonce prove the user may edit the post?

    Does a valid nonce prove the user may edit the post?
    Hint

    Follow the request boundary and normalize each field by type.

  11. 11. Why check DOING_AUTOSAVE?

    Why check DOING_AUTOSAVE?
    Hint

    Follow the request boundary and normalize each field by type.

  12. 12. Why is a revision guard also useful in robust save handlers?

    Why is a revision guard also useful in robust save handlers?
    Hint

    Follow the request boundary and normalize each field by type.

  13. 13. Why use current_user_can(“edit_post”, $post_id)?

    Why use current_user_can(“edit_post”, $post_id)?
    Hint

    Follow the request boundary and normalize each field by type.

  14. 14. What advantage does save_post_pet_tip have over generic save_post?

    What advantage does save_post_pet_tip have over generic save_post?
    Hint

    Follow the request boundary and normalize each field by type.

  15. 15. Why check isset($_POST[field]) before saving?

    Why check isset($_POST[field]) before saving?
    Hint

    Follow the request boundary and normalize each field by type.

  16. 16. Why output a hidden no value before a yes checkbox?

    Why output a hidden no value before a yes checkbox?
    Hint

    Follow the request boundary and normalize each field by type.

  17. 17. How should a yes/no checkbox be normalized?

    How should a yes/no checkbox be normalized?
    Hint

    Follow the request boundary and normalize each field by type.

  18. 18. Why delete optional meta when its cleaned value becomes empty?

    Why delete optional meta when its cleaned value becomes empty?
    Hint

    Follow the request boundary and normalize each field by type.

  19. 19. Does update_post_meta returning false always mean a security failure?

    Does update_post_meta returning false always mean a security failure?
    Hint

    Follow the request boundary and normalize each field by type.

  20. 20. How should a stored text value be printed into an input value attribute?

    How should a stored text value be printed into an input value attribute?
    Hint

    Follow the request boundary and normalize each field by type.