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 函数: zeroise

WordPress 函数: zeroise

添加必要的前导零。 如果 $threshold 设置为'4',并且 $number 是是'10',返回'0010',如果 $number 是'5000',返回'5000'。 主要使用 sprintf 根据 $thresh…


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_trim_words

WordPress 函数:wp_trim_words

这个函数将文本修剪到一定数量单词并返回。 用法 <?php wp_trim_words( $text, $num_words = 55, $more = null ); ?> 参数 $text (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 函数:wp_richedit_pre

WordPress 函数:wp_richedit_pre

格式化文本以便用到富文本编辑器中 会调用 'richedit_pre' filter。 用法 <?php wp_richedit_pre( $text ) ?> 参数 $text (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 函数:wp_rel_nofollow

WordPress 函数:wp_rel_nofollow

添加 rel="nofollow" 到所有 HTML 实体中 A 元素中。 用法 <?php wp_rel_nofollow( $text ) ?> 参数 $text (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 函数:wp_make_link_relative

WordPress 函数:wp_make_link_relative

将完整的 URL 路径转化成绝对路径。 删除 http 或者 https 协议和域名,保留路径中开始的的 '/' ,所以这不是真实的相对路径,但是基于 Web 根开始的。 用法 <?php wp_make_link…


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 函数:wptexturize

WordPress 函数:wptexturize

将纯文本字符转换成格式化的 HTML 实体。 <PRE>,<CODE>,<kbd>,<STYLE>,<script>和<tt>中的文本被忽略。 用法…


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 函数:wpautop

WordPress 函数:wpautop

将文本中的两个换行符转换成 HTML 段落 (<p>...</p>),其余的换行转换成 <br /> WordPress 使用这个函数对日志内容和摘要进行格式化处理。 用法 <?…


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 函数:utf8_uri_encode

WordPress 函数:utf8_uri_encode

编码 Unicode 的值,用于 URI。 用法 <?php utf8_uri_encode( $utf8_string, $length ) ?> 参数 $utf8_string (string) (req…


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 函数:url_shorten

WordPress 函数:url_shorten

缩短 URL,删除 http://, www., 然后将剩下的 url 缩短到 35 个字符,如果字符串长度大于 35,则末尾加上 .... WordPress 用它在链接管理器界面显示链接 URL。 用法 <?p…


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 函数:untrailingslashit

WordPress 函数:untrailingslashit

删除字符串末尾的 /。 用法 <?php untrailingslashit( $string ); ?> 参数 $string (string) (required) 将去除末尾 / 的字符串。 Defau…


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 函数:trailingslashit

WordPress 函数:trailingslashit

在字符串末尾添加 / 添加之前会删除字符串末尾已有的 /,这样可以防止添加两个 / 用法 <?php trailingslashit( $string ) ?> 参数 $string (string) (re…


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 函数:stripslashes_deep

WordPress 函数:stripslashes_deep

使用 stripslashes 函数去掉 /,如果输入的是对象,使用 get_object_vars 转换成数组,然后对数组递归调用 stripslashes_deep,去掉数组中每个值的 / 。 用法 <?php…


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 函数:seems_utf8

WordPress 函数:seems_utf8

检测字符串是否是 UTF-8 编码。 用法 <?php seems_utf8( $string ); ?> 参数 (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 函数:sanitize_user

WordPress 函数:sanitize_user

清理用户名,去掉所有不安全的字符。 删除 HTML 标签,8进制,HTML实体,如果 $strict 参数设置为 true,将删除所有非 ASCII 字符,只保留数字,字母,_,空格,.,-,@。 用法 <?php…


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 函数:sanitize_title_with_dashes

WordPress 函数:sanitize_title_with_dashes

清理标题,并且将空格替换成破折号。 输出被限制为只能是字符,数字,下划线(_)和破折号,空格被替换成破折号。 用法 <?php sanitize_title_with_dashes( $title, $unused…


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 函数:sanitize_title_for_query

WordPress 函数:sanitize_title_for_query

清理标题用于数据库查询中,函数中调用 sanitize_title($title, "", "query") ,详细看 sanitize_title()。 用法 <?php sanitize_title_for_q…


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 函数:sanitize_title

WordPress 函数:sanitize_title

清理标题或者使用 $fallback 作为标题。 具体来说,HTML 和 PHP 标签都会被删除,进一步的操作是通过插件 API 实现的,如果 $title 是空的并且 $fallback_title 设置了值,那么返回…


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 函数:sanitize_text_field

WordPress 函数:sanitize_text_field

清理用户输入或者从数据库中获取的字符串。 检查是否合法的 UTF-8 字符,将 < 转换成 HTML 实体,去掉所有标签,删除所有换行符,占位符,以及额外的空格,去掉八位字节。 用法 <?php saniti…


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 函数:sanitize_sql_orderby

WordPress 函数:sanitize_sql_orderby

保证输入的字符串是合法的 SQL Order by 语句。 支持一个或者多个字段,可以有或者没有 ASC/DESC,并且也介绍 RAND() 关键字。 用法 <?php sanitize_sql_orderby( …


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 函数:sanitize_option

WordPress 函数:sanitize_option

根据不同的选项对其值进行清理。 基本上这事一个 Switch 语句,它会根据不同的 $option 把 $value 传递给不同的函数进行处理。 用法 <?php sanitize_option( $option,…