Timber\Post::get_info PHP Метод

get_info() защищенный Метод

Used internally by init, etc. to build TimberPost object
protected get_info ( integer $pid ) : null | object | WP_Pos\WP_Post
$pid integer
Результат null | object | WP_Pos\WP_Post
    protected function get_info($pid)
    {
        $post = $this->prepare_post_info($pid);
        if (!isset($post->post_status)) {
            return null;
        }
        do_action_ref_array('the_post', array(&$post, &$GLOBALS['wp_query']));
        $post->status = $post->post_status;
        $post->id = $post->ID;
        $post->slug = $post->post_name;
        $customs = $this->get_post_custom($post->ID);
        $post->custom = $customs;
        $post = (object) array_merge((array) $customs, (array) $post);
        return $post;
    }