Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Register Custom Taxonomy
- function Continents() {
- $labels = array(
- 'name' => _x( 'Continents', 'Taxonomy General Name', 'ryan-handy' ),
- 'singular_name' => _x( 'Continent', 'Taxonomy Singular Name', 'ryan-handy' ),
- 'menu_name' => __( 'Continents', 'ryan-handy' ),
- 'all_items' => __( 'All Continents', 'ryan-handy' ),
- 'parent_item' => __( 'Parent Item', 'ryan-handy' ),
- 'parent_item_colon' => __( 'Parent Item:', 'ryan-handy' ),
- 'new_item_name' => __( 'New Continent', 'ryan-handy' ),
- 'add_new_item' => __( 'Add New Continent', 'ryan-handy' ),
- 'edit_item' => __( 'Edit Continent', 'ryan-handy' ),
- 'update_item' => __( 'Update Continent', 'ryan-handy' ),
- 'view_item' => __( 'View Continent', 'ryan-handy' ),
- 'separate_items_with_commas' => __( 'Separate items with commas', 'ryan-handy' ),
- 'add_or_remove_items' => __( 'Add or Remove contient', 'ryan-handy' ),
- 'choose_from_most_used' => __( 'Choose from the most used', 'ryan-handy' ),
- 'popular_items' => __( 'Popular Items', 'ryan-handy' ),
- 'search_items' => __( 'Search Continents', 'ryan-handy' ),
- 'not_found' => __( 'Not Found', 'ryan-handy' ),
- 'no_terms' => __( 'No Continents', 'ryan-handy' ),
- 'items_list' => __( 'Continents List', 'ryan-handy' ),
- 'items_list_navigation' => __( 'Continents Navigation', 'ryan-handy' ),
- );
- $args = array(
- 'labels' => $labels,
- 'hierarchical' => false,
- 'public' => true,
- 'show_ui' => true,
- 'show_admin_column' => true,
- 'show_in_nav_menus' => true,
- 'show_tagcloud' => true,
- );
- register_taxonomy( 'continents', array( 'countries' ), $args );
- }
- add_action( 'init', 'Continents', 0 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement