Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'after_setup_theme','remove_portfolio', 100 );
- function remove_portfolio() {
- remove_action( 'init', 'quality_portfolio_type');
- }
- function quality_portfolio_type1()
- { register_post_type( 'quality_portfolio',
- array(
- 'labels' => array(
- 'name' => __('Artist','quality'),
- 'add_new' => __('Add New', 'quality'),
- 'add_new_item' => __('Add New Project','quality'),
- 'edit_item' => __('Add New','quality'),
- 'new_item' => __('New Link','quality'),
- 'all_items' => __('All Artist','quality'),
- 'view_item' => __('View Link','quality'),
- 'search_items' => __('Search Links','quality'),
- 'not_found' => __('No Links found','quality'),
- 'not_found_in_trash' => __('No Links found in Trash','quality'),
- ),
- 'supports' => array('title','editor','thumbnail'),
- 'show_in' => true,
- 'show_in_nav_menus' => false,
- 'rewrite' => array('slug' => 'artist'),
- 'public' => true,
- 'menu_position' =>20,
- 'public' => true,
- 'menu_icon' => WEBRITI_TEMPLATE_DIR_URI . '/images/option-icon-media.png',
- )
- );
- }
- add_action( 'init', 'quality_portfolio_type1' );
Add Comment
Please, Sign In to add comment