Viewing 1 replies (of 1 total)
  • Thread Starter Sonicelo

    (@sonicelo)

    With help of following actions, you can make the graphical interface on the needed taxonomy page:

    add_action("{$taxonomy}_edit_form", "foo_add_taxonomy_meta_boxes", 10, 2); // Edit taxonomy page
    add_action("{$taxonomy}_add_form_fields", "foo_add_taxonomy_meta_boxes_2"); // Add taxonomy page (basicaly where you can list all of them)
    add_action("edit_{$taxonomy}", "foo_save_taxonomy_meta", 10, 2); // Editing existing one, be carefull as it runs also in quick edit
    add_action("create_{$taxonomy}","foo_save_taxonomy_meta", 10, 2); // Creating new taxonomy
    add_action("delete_{$taxonomy}", "foo_delete_taxonomy_meta", 10, 3); // Deleting a taxonomy, you should always clean up after yourself

Viewing 1 replies (of 1 total)
  • The topic ‘Perfect’ is closed to new replies.