百度 | 神马 | 搜狗 | 技术文档 | 学习资料分享 - 记录帝国CMS及运维技术的点点滴滴
你的位置:首页 > 实用IT技术 » 正文

【Wordpress相关】WordPress 常用函数 / wp_rel_nofollow

发布时间:2020-09-17

WordPress 常用函数 / wp_rel_nofollow,

简介

添加 rel=”nofollow” 到所有 HTML 实体中 A 元素中。

用法

<?php wp_rel_nofollow( $text ) ?>

参数

$text
(string) (required) 可能包含 A 元素的 HTML 片段
Default: None

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>

返回值

(string)
添加了 rel=”nofollow” 之后的字符串

修改记录

Since: 1.5.0

源文件

wp-includes/formatting.php

Top