WordPress开发者和主题制作者的搜索引擎



theme_mod_{$name} ›

Since2.2.0
已弃用n/a
apply_filters( "theme_mod_{$name}", $mods[ $name ] )
参数:
  • (string) $current_mod The value of the current theme modification.
    Required: Yes
定义在:
文档:

Filters the theme modification, or 'theme_mod', value.

The dynamic portion of the hook name, $name, refers to the key name of the modification array. For example, 'header_textcolor', 'header_image', and so on depending on the theme options.





源码

return apply_filters( "theme_mod_{$name}", $mods[ $name ] );