简码API2009-05-06 简码API 简码API 简码API(应用程序接口)是WordPress 2.5的新功能。简码API是一个简单的函数集,这些函数创建宏代码以供在文章内容中使用。下面是一个普通简码: 简码API简化了支持属性的简码的创建: AP...
常用函数-get_header_textcolor()2009-05-05 常用函数-get_header_textcolor() 说明 检索自定义页眉的字体颜色 用法 <?php get_header_textcolor() ?> 参数...
常用函数-set_theme_mod()2009-05-05 常用函数-set_theme_mod() 说明 更新当前主题的主题修改值 用法 <?php set_theme_mod( $name, $value )&n...
常用函数-validate_current_theme()2009-05-04 常用函数-validate_current_theme() 说明 检查当前主题文件 'index.php' 与'style.css'是否存在。 不检查“默认&rdqu...
常用函数-switch_theme()2009-05-04 常用函数-switch_theme() 说明 将当前主题转换为新模板和新的样式表单名称 用法 <?php switch_theme( $template, $stylesheet ) ?> 参数 $template ...
常用函数-get_theme_mod()2009-05-04 常用函数-get_theme_mod() 说明 为当前主题检索主题修改值。 若修改名称不存在, sprintf() 会将$default、模板目录URI的第一个字符串以及样式表单目录URI的第二个字符串一并传递。 用法 <...
WordPress如何处理文章内容2009-05-04 WordPress如何处理文章内容 WordPress后台中编辑的内容最终显示在WordPress博客的网页之前,WordPress会对该内容进行多次处理。处理过程中将过滤多余代码,且会将内容转换成浏览器可翻译的格式。若用户不了解Wo...
常用函数-preview_theme_ob_filter_callback()2009-05-04 常用函数-preview_theme_ob_filter_callback() 说明 处理预览主题链接,以控制并保持定位。 为preg_replace_callback()回调函数以匹配过滤器。 用法 <?php pre...
常用函数-preview_theme_ob_filter()2009-05-04 常用函数-preview_theme_ob_filter() 说明 为ob_start()回调函数以获取主题中所有链接。 用法 <?php preview_theme_ob_filter( $content ) ?> ...
常用函数-preview_theme()2009-05-04 常用函数-preview_theme() 说明 开启预览主题输出缓冲器。 该函数只在用户拥有权限且'template'和'preview'查询变量都存在时执行任务。若's...