Inpsyde\MultilingualPress\Relations\Post\Search\StatusAwareSearchResultsView::get_post_title PHP Метод

get_post_title() приватный Метод

Returns the title of the given post, including the status if not published.
private get_post_title ( WP_Post $post ) : string
$post WP_Post Post object.
Результат string Post title, including status if not published.
    private function get_post_title(WP_Post $post)
    {
        if ('publish' === $post->post_status) {
            return esc_html($post->post_title);
        }
        /* translators: 1: post title, 2: post status */
        $format = esc_html__('%1$s — %2$s', 'multilingual-press');
        return sprintf($format, $post->post_title, $this->get_translated_status($post->post_status));
    }