首页 WordPress函数大全 current_theme_supports()

current_theme_supports()

2020-05-01 / 2261阅 / 悠然

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

current_theme_supports( string $feature, mixed $args )

Checks a theme’s support for a given feature.

描述

Example usage:

current_theme_supports( 'custom-logo' );
current_theme_supports( 'html5', 'comment-form' ); 

参数

$feature

(string)
(Required)
The feature being checked.

$args

(mixed)
(Optional)
extra arguments to be checked against certain features.

返回

(bool) True if the current theme supports the feature, false otherwise.

大家谈论
    我的见解