[wordpress插件] Cleancut整洁

wordpress 插件 文章 2020-03-24 13:50 537 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

A couple of simple php functions that, when passed a string of text and a length value, strips the text of html tags and markup, and cuts it to the specified length.

几个简单的PHP函数,当传递一个字符串和一个长度值时,会剥离html标记和标记的文本,并将其剪切为指定的长度。

clencut_w returns the given number of words or less, cleancut_c returns given number of characters or less.

clencut_w返回给定的字符数或更少,cleancut_c返回给定的字符数或更少。

Only complete words are returned.

仅返回完整的单词。

They can be called as cleancut_w($string,$length) and cleancut_c($string,$length=50) from any template file.

在任何模板文件中,它们都可以称为 cleancut_w($ string,$ length) cleancut_c($ string,$ length = 50)

Example:

示例: <?php $ text_clean = cleancut_w($ sometext,50);

echo $text_clean;

echo $ text_clean;

?>.

?>

安装步骤

    1. Copy cct_cleancut.php to the /wp-content/plugins/ directory.
    2. cct_cleancut.php 复制到 / wp-content / plugins / 目录。

    3. Activate it.
    4. 激活它。

    5. Now you can use cleancut_w($string,$length) and cleancut_c($string,$length=50) in your templates.
    6. 现在,您可以在模板中使用 cleancut_w($ string,$ length) cleancut_c($ string,$ length = 50)

下载地址
https://downloads.wordpress.org/plugin/cleancut.1.2.0.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Bitwords位字
[wordpress插件] AndroCaptcha &#8211; Android like Captcha for WordPressAndroCaptcha –像Captcha这样的Android for WordPress
[wordpress插件] Custom Importer &amp; Exporter海关进出口商
[wordpress插件] BSD VerwaltungBSD管理
[wordpress插件] 3 Sheep Signatures3羊签名
随便看看
微信开放平台跟公众平台有什么区别? 3608
怎么添加小程序支付功能? 4516
教育科技公司申请微信支付被拒绝? 4798
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472