• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / genesis_rel_nofollow() – Add `rel="nofollow"` attribute and value to links within string passed in.

You appear to be a bot. Output may be restricted

Description

Add rel="nofollow" attribute and value to links within string passed in.

Usage

$string = genesis_rel_nofollow( $text );

Parameters

$text
( string ) required – HTML markup.

Returns

string Amended HTML markup with rel="nofollow" attribute.

Source

File name: genesis/lib/functions/formatting.php
Lines:

1 to 6 of 6
function genesis_rel_nofollow( $text ) {

  $text = genesis_strip_attr( $text, 'a', 'rel' );
  return stripslashes( wp_rel_nofollow( $text ) );

}
 

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: genesis_rel_nofollow
Plugin ref: Genesis Framework
Version: 3.3.3
Sourcefile: lib/functions/formatting.php
File ref: lib/functions/formatting.php
Deprecated?: No
API Letters: G,N,R

Footer

Genesis a2z
Genesis Theme Framework a2z
WordPress Dynamic API Reference
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  genesis.wp-a2z.org
© Copyright Genesis a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites