首页 WordPress函数大全 get_theme_mod()

get_theme_mod()

2020-05-01 / 3578阅 / 悠然

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

get_theme_mod( string $name, string|false $default = false )

Retrieve theme modification value for the current theme.

描述

If the modification name does not exist, then the $default will be passed through sprintf() PHP function with the template directory URI as the first string and the stylesheet directory URI as the second string.

参数

$name

(string)
(Required)
Theme modification name.

$default

(string|false)
(Optional)
Theme modification default value.

Default value: false

返回

(mixed) Theme modification value.

大家谈论
    我的见解