twentyeleven_theme_options_validate

过滤钩子
apply_filters( 'twentyeleven_theme_options_validate', $output, $input, $defaults )
参数
  • (array) $output An array of sanitized form output.
    Required:
  • (array) $input An array of un-sanitized form input.
    Required:
  • (array) $defaults An array of default theme options.
    Required:
定义位置
  • wp-content/themes/twentyeleven/inc/theme-options.php , line 408
相关勾子
twentyeleven_default_theme_optionstwentyeleven_author_bio_avatar_sizetwentyeleven_header_image_widthtwentytwelve_author_bio_avatar_sizetwentyeleven_color_schemes
相关方法
get_theme_updates_delete_option_fresh_sitepreview_theme_ob_filterwp_resolve_post_datedelete_optionget_the_modified_date
引入
Twenty Eleven 1.0
弃用
-

twentyeleven_theme_options_validate – 这个函数用来验证Twenty Eleven主题中设置的选项。它确保用户设置的选项是有效的,可以应用到网站上。

过滤经过净化的Twenty Eleven表格输入数组。

return apply_filters( 'twentyeleven_theme_options_validate', $output, $input, $defaults );

常见问题

FAQs
查看更多 >