SHARE
TWEET

Untitled

a guest Jan 18th, 2019 17 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action( 'after_setup_theme','remove_portfolio', 100 );
  2.  
  3. function remove_portfolio() {
  4.     remove_action( 'init', 'quality_portfolio_type');
  5. }
  6.  
  7. function quality_portfolio_type1()
  8. {   register_post_type( 'quality_portfolio',
  9.         array(
  10.             'labels' => array(
  11.                 'name' => __('Artist','quality'),
  12.                 'add_new' => __('Add New', 'quality'),
  13.                 'add_new_item' => __('Add New Project','quality'),
  14.                 'edit_item' => __('Add New','quality'),
  15.                 'new_item' => __('New Link','quality'),
  16.                 'all_items' => __('All Artist','quality'),
  17.                 'view_item' => __('View Link','quality'),
  18.                 'search_items' => __('Search Links','quality'),
  19.                 'not_found' =>  __('No Links found','quality'),
  20.                 'not_found_in_trash' => __('No Links found in Trash','quality'),
  21.             ),
  22.             'supports' => array('title','editor','thumbnail'),
  23.             'show_in' => true,
  24.             'show_in_nav_menus' => false,
  25.             'rewrite' => array('slug' => 'artist'),
  26.             'public' => true,
  27.             'menu_position' =>20,
  28.             'public' => true,
  29.             'menu_icon' => WEBRITI_TEMPLATE_DIR_URI . '/images/option-icon-media.png',
  30.         )
  31.     );
  32. }
  33. add_action( 'init', 'quality_portfolio_type1' );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top