首页 WordPress函数大全 get_theme_support()

get_theme_support()

2020-05-01 / 4825阅 / 悠然

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

get_theme_support( string $feature, mixed $args )

Gets the theme support arguments passed when registering that support

描述

Example usage:

get_theme_support( 'custom-logo' );
get_theme_support( 'custom-header', 'width' ); 

参数

$feature

(string)
(Required)
The feature to check.

$args

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

返回

(mixed) The array of extra arguments or the value for the registered feature.

大家谈论
    我的见解