src/Post/Post.php
public function getPostTypeObject($post_type)
    {
        if ( ! isset($this->postTypes[ $post_type ])) {
            return false;
        }

        return $this->postTypes[ $post_type ];
    }
public function getPostTypeObject($post_type)
    {
        if ( ! isset($this->postTypes[ $post_type ])) {
            return false;
        }

        return $this->postTypes[ $post_type ];
    }
public function getPostTypeObject ( $ post_type ) { if ( ! isset ( $ this -> postTypes [ $ post_type ] ) ) { return false ; } return $ this -> postTypes [ $ post_type ] ; }
Returns the registered post type object

@param string $post_type

@return false|\stdClass
Returns the registered post type object