Lubinik Learning

Training mode

Lubinik Code Reading

Time remaining:

0 / 20 answered

  1. 1. What does register(“”, $callback, $meta) add to Lubinik_Shortcode_Registry?

    What does register(“”, $callback, $meta) add to Lubinik_Shortcode_Registry?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  2. 2. After register(“demo”, null, array()), which metadata is stored?

    After register(“demo”, null, array()), which metadata is stored?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  3. 3. If shortcode_exists(“demo”) is true, what does registry registration do with a new callable?

    If shortcode_exists(“demo”) is true, what does registry registration do with a new callable?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  4. 4. The entities filter returns null. What does core do next?

    The entities filter returns null. What does core do next?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  5. 5. The entities filter returns array(). What does core do next?

    The entities filter returns array(). What does core do next?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  6. 6. entity_type_for_post() receives a post type absent from all mappings. What is returned?

    entity_type_for_post() receives a post type absent from all mappings. What is returned?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  7. 7. What does global_option_key(“enabled_shortcodes”, “accommodation”) return?

    What does global_option_key(“enabled_shortcodes”, “accommodation”) return?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  8. 8. Local title is “Local” and the global title is “Global”. Which title renders?

    Local title is “Local” and the global title is “Global”. Which title renders?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  9. 9. Local title is an empty string and global title is “Global”. Which title resolves?

    Local title is an empty string and global title is “Global”. Which title resolves?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  10. 10. Local override_source_id is “default”, global override is “default”, selected source is 42. What source is used?

    Local override_source_id is “default”, global override is “default”, selected source is 42. What source is used?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  11. 11. Local override_source_id is 17 and selected source is 42. What source is used?

    Local override_source_id is 17 and selected source is 42. What source is used?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  12. 12. Global custom color is blue and page custom color is red. What reaches the shortcode?

    Global custom color is blue and page custom color is red. What reaches the shortcode?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  13. 13. The stored key is custom_columns with value 3. Which generated attribute is correct?

    The stored key is custom_columns with value 3. Which generated attribute is correct?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  14. 14. Why is custom_show_title skipped in the generic custom-attribute loop?

    Why is custom_show_title skipped in the generic custom-attribute loop?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  15. 15. enabled_shortcodes contains “gallery,about,calendar”. In what order are they processed?

    enabled_shortcodes contains “gallery,about,calendar”. In what order are they processed?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  16. 16. The enabled list is “gallery,missing,calendar” and missing is not registered. What renders?

    The enabled list is “gallery,missing,calendar” and missing is not registered. What renders?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  17. 17. Directory A and then B both expose classic/template.php. Which package is retained?

    Directory A and then B both expose classic/template.php. Which package is retained?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  18. 18. A package has meta.php but no readable template.php. What happens?

    A package has meta.php but no readable template.php. What happens?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  19. 19. The gallery items provider returns an empty array. Are gallery assets requested?

    The gallery items provider returns an empty array. Are gallery assets requested?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  20. 20. Calendar receives events and locale=”it”. What appears in its data payload?

    Calendar receives events and locale=”it”. What appears in its data payload?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.