public function getPostTypeConfig()
    {
        if (in_array($this->getPostType(), array('post', 'page'))) {
            return null;
        }
        
        return array(
            'labels' => array(
                'name'              => _x($this->getPlural(), 'post type general name'),
                'singular_name'     => _x($this->getSingular(), 'post type singular name'),
                'add_new'           => _x('Add New', $this->getSingular()),
                'add_new_item'      => __(sprintf('Add New %s', $this->getSingular())),
                'edit_item'         => __(sprintf('Edit %s', $this->getSingular())),
                'new_item'          => __(sprintf('New %s', $this->getPlural())),
                'view_item'         => __(sprintf('View %s', $this->getSingular())),
                'search_items'      => __(sprintf('Search %s', $this->getPlural())),
                'not_found'         => __(sprintf('No %s found', $this->getPlural())),
                'not_found_in_trash'=> __(sprintf('No %s found in Trash', $this->getPlural())),
                'parent_item_colon' => ''
            ),
            'hierarchical'        => $this->getHierarchical(),
            'public'              => $this->getPublic(),
            'supports'            => $this->getSupports(),
            'show_in_menu'        => $this->getShowInMenu(),
            'show_in_admin_bar'   => $this->getShowInAdminBar(),
            'menu_icon'           => $this->getMenuIcon(),
            'menu_position'       => $this->getMenuPosition(),
            'exclude_from_search' => $this->getExcludeFromSearch(),
            'has_archive'         => $this->getHasArchive(),
            'rewrite'             => $this->getRewrite(),
            'publicly_queryable'  => $this->getPubliclyQueryable(),
        );
    }
public function getPostTypeConfig()
    {
        if (in_array($this->getPostType(), array('post', 'page'))) {
            return null;
        }
        
        return array(
            'labels' => array(
                'name'              => _x($this->getPlural(), 'post type general name'),
                'singular_name'     => _x($this->getSingular(), 'post type singular name'),
                'add_new'           => _x('Add New', $this->getSingular()),
                'add_new_item'      => __(sprintf('Add New %s', $this->getSingular())),
                'edit_item'         => __(sprintf('Edit %s', $this->getSingular())),
                'new_item'          => __(sprintf('New %s', $this->getPlural())),
                'view_item'         => __(sprintf('View %s', $this->getSingular())),
                'search_items'      => __(sprintf('Search %s', $this->getPlural())),
                'not_found'         => __(sprintf('No %s found', $this->getPlural())),
                'not_found_in_trash'=> __(sprintf('No %s found in Trash', $this->getPlural())),
                'parent_item_colon' => ''
            ),
            'hierarchical'        => $this->getHierarchical(),
            'public'              => $this->getPublic(),
            'supports'            => $this->getSupports(),
            'show_in_menu'        => $this->getShowInMenu(),
            'show_in_admin_bar'   => $this->getShowInAdminBar(),
            'menu_icon'           => $this->getMenuIcon(),
            'menu_position'       => $this->getMenuPosition(),
            'exclude_from_search' => $this->getExcludeFromSearch(),
            'has_archive'         => $this->getHasArchive(),
            'rewrite'             => $this->getRewrite(),
            'publicly_queryable'  => $this->getPubliclyQueryable(),
        );
    }
public function getPostTypeConfig ( ) { if ( in_array ( $ this -> getPostType ( ) , array ( 'post' , 'page' ) ) ) { return null ; } return array ( 'labels' => array ( 'name' => _x ( $ this -> getPlural ( ) , 'post type general name' ) , 'singular_name' => _x ( $ this -> getSingular ( ) , 'post type singular name' ) , 'add_new' => _x ( 'Add New' , $ this -> getSingular ( ) ) , 'add_new_item' => __ ( sprintf ( 'Add New %s' , $ this -> getSingular ( ) ) ) , 'edit_item' => __ ( sprintf ( 'Edit %s' , $ this -> getSingular ( ) ) ) , 'new_item' => __ ( sprintf ( 'New %s' , $ this -> getPlural ( ) ) ) , 'view_item' => __ ( sprintf ( 'View %s' , $ this -> getSingular ( ) ) ) , 'search_items' => __ ( sprintf ( 'Search %s' , $ this -> getPlural ( ) ) ) , 'not_found' => __ ( sprintf ( 'No %s found' , $ this -> getPlural ( ) ) ) , 'not_found_in_trash' => __ ( sprintf ( 'No %s found in Trash' , $ this -> getPlural ( ) ) ) , 'parent_item_colon' => '' ) , 'hierarchical' => $ this -> getHierarchical ( ) , 'public' => $ this -> getPublic ( ) , 'supports' => $ this -> getSupports ( ) , 'show_in_menu' => $ this -> getShowInMenu ( ) , 'show_in_admin_bar' => $ this -> getShowInAdminBar ( ) , 'menu_icon' => $ this -> getMenuIcon ( ) , 'menu_position' => $ this -> getMenuPosition ( ) , 'exclude_from_search' => $ this -> getExcludeFromSearch ( ) , 'has_archive' => $ this -> getHasArchive ( ) , 'rewrite' => $ this -> getRewrite ( ) , 'publicly_queryable' => $ this -> getPubliclyQueryable ( ) , ) ; }
Get the post type config
@return array
Get the post type config