display_header_text()
Whether to display the header text.
描述
返回值
(bool)
源代码
File: wp-includes/theme.php
function display_header_text() {
if ( ! current_theme_supports( 'custom-header', 'header-text' ) )
return false;
$text_color = get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) );
return 'blank' !== $text_color;
}
更新日志
Version | 描述 |
---|---|
3.4.0 | Introduced. |
相关函数
Uses
-
wp-includes/theme.php:
current_theme_supports() -
wp-includes/theme.php:
get_theme_support() -
wp-includes/theme.php:
get_theme_mod()
Used By
-
wp-admin/custom-header.php:
Custom_Image_Header::step_1() -
wp-admin/custom-header.php:
Custom_Image_Header::js_1()
User Contributed Notes
你可能对这些文章感兴趣:
- wordpress函数edit_user()用法示例
- wordpress函数email_exists()用法示例
- wordpress函数endElement()用法示例
- wordpress函数edit_term_link()用法示例
- wordpress函数edit_post_link()用法示例
- wordpress函数edit_tag_link()用法示例
- wordpress函数edit_link()用法示例
- wordpress函数edit_post()用法示例
- wordpress函数edit_comment_link()用法示例
- wordpress函数edit_form_image_editor()用法示例
- wordpress函数edit_bookmark_link()用法示例
- wordpress函数edit_comment()用法示例
- wordpress函数drop_index()用法示例
- wordpress函数dynamic_sidebar()用法示例
如有疑问,请前往问答中心反馈!
反馈