Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_cache_add_global_groups

WordPress 函数:wp_cache_add_global_groups

添加缓存组,并且把添加的组设置为全局的组。这个函数主要用在 multisite。 用法 wp_cache_add_global_groups( $groups ); 参数 $group (string|array) (o…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_cache_add

WordPress 函数:wp_cache_add

如果 cache key 不存在,就添加数据到缓存中。 用法 <?php wp_cache_add($key, $data, $group = '', $expire = 0); ?> 参数 $key (in…

歌单分享:让你身临其境的万人大合唱

歌单分享:让你身临其境的万人大合唱

歌单分享:让你身临其境的万人大合唱,欧美精彩现场,歌曲全程高能,歌迷现场大合唱,乃闭门自嗨之良品。相关歌单推荐「听歌怎能不听Live,欧美现场」 注:因版权问题,可能播放不了,请「点击这里」试听


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:strip_shortcodes

WordPress 函数:strip_shortcodes

删除置顶内容中的所有短代码标签。 用法 <?php strip_shortcodes( $content ); ?> 参数 $content (string) (required) 将要删除所有短代码标签的字…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:shortcode_parse_atts

WordPress 函数:shortcode_parse_atts

获取短代码的所有属性,获取到属性列表是属性名作为 key,属性值做为 value 的 key/value 对。这个函数用于更加容易获取属性,因为所有属性都必须已知。 用法 <?php shortcode_parse…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:shortcode_atts

WordPress 函数:shortcode_atts

将用户输入的短代码的属性值和短代码默认属性值合并,结果将包含所有已知属性的每个 key,他们的值是合并之后的结果。 用法 <?php shortcode_atts( $pairs , $atts ); ?> …


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:remove_shortcode

WordPress 函数:remove_shortcode

删除一个短代码。 用法 <?php remove_shortcode( $tag ); ?> 参数 $tag (string) (required) 将要删除短代码的名称。 Default: None 返回值…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:remove_all_shortcodes

WordPress 函数:remove_all_shortcodes

删除所有短代码。 用法 <?php remove_all_shortcodes(); ?> 参数 无 返回值 无 注解 这个函数删除通过将短代码的全局变量 $shortcode_tags 清空来实现删除所有短…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:has_shortcode

WordPress 函数:has_shortcode

检查内容中是否含有指定的 Shortcode。 用法 <?php if ( has_shortcode( $content, 'gallery' ) ) { } ?> 参数 $content (string)…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:get_shortcode_regex

WordPress 函数:get_shortcode_regex

返回用来查找短代码的正则表达式。这个函数将所有已经注册的短代码的标签组合成一个单一的正则表达式。 用法 <?php get_shortcode_regex(); ?> 参数 无 返回值 (string) 搜索…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:do_shortcode_tag

WordPress 函数:do_shortcode_tag

do_shortcode() 函数中正则表达式的回调函数。 用法 <?php do_shortcode_tag( $m ) ?> 参数 $m (array) (required) 正则表表达式适配的数组 De…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:do_shortcode

WordPress 函数:do_shortcode

搜索 $content 中的短代码(shortcode)并调用其对应的处理函数来替换。 用法 <?php echo do_shortcode( $content ) ?> 参数 $content  (stri…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:add_shortcode

WordPress 函数:add_shortcode

添加一个新的 Shortcode(短代码)标签。 用法 <?php add_shortcode( $tag , $func ); ?> 参数 $tag (string) (required) Shortcod…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:update_post_meta

WordPress 函数:update_post_meta

根据日志 ID 来更新自定义字段。使用 $prev_value 参数来区分同样的 key 和日志 ID 的自定义字段。 如果指定的 $meta_key 不存在,则添加这个自定义字段。 用法 <?php update…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:get_post_meta

WordPress 函数:get_post_meta

这个函数获取指定日志的指定 key 的自定义字段,如果要获取指定日志的所有自定义字段,使用 get_post_custom()。 用法 <?php get_post_meta($post_id, $key, $si…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:get_post_custom_values

WordPress 函数:get_post_custom_values

获取指定的日志(默认是当前日志)和指定 key 的所有自定义字段值。如果该 key 不存在,或者 $key 输入空,怎么返回 null。 用法 <?php get_post_custom_values($key, …


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:get_post_custom_keys

WordPress 函数:get_post_custom_keys

获取指定日志或者页面的所有自定义字段的 key。 用法 <?php get_post_custom_keys($post_id); ?> 参数 $post_id (integer) (optional) 要获…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:get_post_custom

WordPress 函数:get_post_custom

获取指定日志或者页面的所有自定义字段。 用法 <?php get_post_custom($post_id); ?> 参数 $post_id (integer) (optional) 要获取所有自定义字段的日…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:delete_post_meta_by_key

WordPress 函数:delete_post_meta_by_key

删除所有日志的指定 meta_key。 用法 <?php delete_post_meta_by_key($post_meta_key);?> 参数 $post_meta_key (string) (requ…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:delete_post_meta

WordPress 函数:delete_post_meta

这个函数删除指定日志,指定 key 或者 key 和 value 的所有自定义字段。 用法 <?php delete_post_meta($post_id, $meta_key, $meta_value); ?&g…