Documentation / Tutorials / Triggers

Register new Taxonomy

/ Triggers / Register new Taxonomy

[aw2.set module.group_singular_label='Category' /]
[aw2.set module.group_plural_label='Category' /]
[aw2.register taxonomy slug='gallery_category' post_type='as_gallery']
{   
    "label" :"[aw2.get module.group_plural_label /]",
    "hierarchical" : true,
    "show_ui":true,
    "show_admin_column":false,
    "show_in_nav_menus":true,
    "query_var" : true,
    "rewrite" : true,
    "labels" : {
        "name" : "[aw2.get module.group_plural_label /]",
        "singular_name" : "[aw2.get module.group_singular_label /]",
        "menu_name" : "[aw2.get module.group_plural_label /]",
        "add_new" : "Add [aw2.get module.group_singular_label /]",
        "add_new_item" : "Add New [aw2.get module.group_singular_label /]",
        "edit" : "Edit",
        "edit_item" : "Edit [aw2.get module.group_singular_label /]",
        "new_item" : "New [aw2.get module.group_singular_label /]",
        "view" : "View [aw2.get module.group_singular_label /]",
        "view_item" : "View [aw2.get module.group_singular_label /]",
        "search_items" : "Search [aw2.get module.group_plural_label /]",
        "not_found" : "No [aw2.get module.group_plural_label /] Found"
    }
}
[/aw2.register]

 

Categories
Most Popular