Lubinik Learning

Training mode

Lubinik Debugging Scenarios

Time remaining:

0 / 20 answered

  1. 1. An addon loads no modules and LUBINIK_PLUGIN_DIR is undefined. What is the likely cause?

    An addon loads no modules and LUBINIK_PLUGIN_DIR is undefined. What is the likely cause?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  2. 2. A shortcode references Lubinik_Bnb_Constants before the constants file is required. What should be fixed?

    A shortcode references Lubinik_Bnb_Constants before the constants file is required. What should be fixed?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  3. 3. A register_post_type_args filter is attached after the CPT registered. Why are labels unchanged?

    A register_post_type_args filter is attached after the CPT registered. Why are labels unchanged?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  4. 4. CPT code registers correctly on normal requests but archive URLs 404 immediately after activation. What activation step may be wrong?

    CPT code registers correctly on normal requests but archive URLs 404 immediately after activation. What activation step may be wrong?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  5. 5. A filter callback expects ($items,$args), but add_filter declares accepted_args=1. What fails?

    A filter callback expects ($items,$args), but add_filter declares accepted_args=1. What fails?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  6. 6. An addon entity_types callback returns only its own type and discards $types. What breaks?

    An addon entity_types callback returns only its own type and discards $types. What breaks?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  7. 7. A BnB gallery provider adds accommodation images on every post type. Which guard is missing?

    A BnB gallery provider adds accommodation images on every post type. Which guard is missing?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  8. 8. An asset is registered with a filesystem path from plugin_dir_path(). Why does the browser fail?

    An asset is registered with a filesystem path from plugin_dir_path(). Why does the browser fail?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  9. 9. An addon enqueues FullCalendar on every frontend page. What is the best correction?

    An addon enqueues FullCalendar on every frontend page. What is the best correction?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  10. 10. wp_enqueue_script(“addon-gallery”) produces no tag because the handle was never registered. What should be checked?

    wp_enqueue_script(“addon-gallery”) produces no tag because the handle was never registered. What should be checked?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  11. 11. The filter panel HTML appears but its JS never loads. Which call should rendering trigger?

    The filter panel HTML appears but its JS never loads. Which call should rendering trigger?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  12. 12. A filter AJAX request fails nonce validation. Which localized values should be compared with the request?

    A filter AJAX request fails nonce validation. Which localized values should be compared with the request?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  13. 13. Filtering works for admins but not logged-out visitors. Which registration is likely absent?

    Filtering works for admins but not logged-out visitors. Which registration is likely absent?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  14. 14. A request sends term IDs but the config field is slug. What is the problem?

    A request sends term IDs but the config field is slug. What is the problem?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  15. 15. A numeric price filter behaves lexically because its meta type is CHAR. What should change?

    A numeric price filter behaves lexically because its meta type is CHAR. What should change?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  16. 16. The addon render filter returns an empty html string. What output should be expected?

    The addon render filter returns an empty html string. What output should be expected?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  17. 17. A template directory and meta.php exist, but it never appears. Which missing file is decisive?

    A template directory and meta.php exist, but it never appears. Which missing file is decisive?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  18. 18. A child-theme package should override an addon package with the same slug but does not. What determines the result?

    A child-theme package should override an addon package with the same slug but does not. What determines the result?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  19. 19. Both wrapper and shortcode render the same heading. Which contract should be inspected?

    Both wrapper and shortcode render the same heading. Which contract should be inspected?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.

  20. 20. A rich template shows an empty gallery section. Which renderer helps avoid it?

    A rich template shows an empty gallery section. Which renderer helps avoid it?
    Hint

    Trace the snippet or symptom through the actual Lubinik contract.