首页 WordPress函数大全 is_random_header_image()

is_random_header_image()

2020-05-02 / 4245阅 / 悠然

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

is_random_header_image( string $type = 'any' )

检查是否使用了随机标题图像。

描述

如果用户明确选择“外观”>“标题”中的选项,则始终为true。如果主题已注册了多个标题图像,没有选择特定的标题图像,并且主题变为> add_theme_support(),则也为true。

参数

$type

(string)
(Optional)
The random pool to use. any|default|uploaded

Default value: 'any'

返回

(bool)

大家谈论
    我的见解