首页 WordPress函数大全 get_post_format()

get_post_format()

2020-05-01 / 4200阅 / 悠然

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

get_post_format( int|object|null $post = null )

Retrieve the format slug for a post

描述

参数

$post

(int|object|null)
(Optional)
Post ID or post object. Optional, default is the current post from the loop.

Default value: null

返回

(string|false) The format if successful. False otherwise.

大家谈论
    我的见解