Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Comment ajouter nofollow à un lien spécifique ou à tous les liens WordPress dans the_content

<?php
function example_link_nofollow( $content ) {
    $url  ='http://example.com';
        $content = str_replace( '<a href="'.$url.'', '<a rel="nofollow" href="'.$url.'', $content );
    return $content;
}
add_filter('the_content','example_link_nofollow');
?>
Comment

Comment ajouter nofollow à un lien spécifique ou à tous les liens WordPress dans the_content

<?php
function example_all_links_nofollow( $content ){
        $content = str_replace( '<a href="', '<a rel="nofollow" href="', $content );
    return $content;
}
add_filter('the_content','example_all_links_nofollow');
?>
Comment

PREVIOUS NEXT
Code Example
Php :: invalid menu item in wordpress 
Php :: PHP Installation broken - shows strange php code as response 
Php :: merge three array in php 
Php :: stripe cb test 
Php :: laravel collection pull 
Php :: php ussd 
Php :: auto complete order paid2 
Php :: Comment supprimer le fil d’Ariane WooCommerce dans WordPress 
Php :: Eagar loading,parent child relationship,Sub relationship in laravel 
Php :: larvael die and dump facade 
Php :: breaking long array in php 
Php :: siteurl 
Php :: binding instances laravel 
Php :: PHP 7 - Fatal error: Call to undefined method PDF::FPDF() 
Php :: identify the php function used to get values submitted through a form without using any database? 
Php :: Downward half-Pyramid Pattern of Star 
Php :: submit form and send email in php 
Php :: function wp_maintenance_mode() { 763 
Php :: detect mobile device laravel 
Php :: vendor folder command for custom errors laravel 
Php :: Customizing The Validation Attributes 
Php :: laravel scope query 
Php :: push element in array php 
Php :: laravel data type 
Php :: codes for php 
Php :: how to refresh migration in laravel without losing data 
Php :: 12 hrs for preg match with single and double digit in php 
Java :: java get appdata path 
Java :: android get screen width and height 
Java :: javafx dependency 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =