首页 WordPress函数大全 get_the_title()

get_the_title()

2020-05-02 / 4751阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_the_title( int|WP_Post $post )

Retrieve post title.

描述

If the post is protected and the visitor is not an admin, then "Protected" will be displayed before the post title. If the post is private, then "Private" will be located before the post title.

参数

$post

(int|WP_Post)
(Optional)
Post ID or WP_Post object. Default is global $post.

返回

(string)

大家谈论
    我的见解