Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Ajouter du contenu personnalisé sous chaque article/publication WordPress

<?php
function add_post_content($content) {
if(!is_feed() && !is_home()) {
$content .= '<p>This article is copyright © '.date('Y').' '.bloginfo('name').'</p>';
}
return $content;
}
add_filter('the_content', 'add_post_content');
?>
Comment

PREVIOUS NEXT
Code Example
Php :: pivot null in livewire refresh 
Php :: lazy loading vs eager loading laravel 
Php :: jsondecodephparray 
Php :: codeigniter remote queries very slow 
Php :: php check if string startswith 
Php :: auto complete order paid1 
Php :: query builder laravel getmedia undefined method 
Php :: check backend post type 
Php :: api key for getting youtube channel videos in php 
Php :: schema key issue laravel 
Php :: Limiter la révision des articles WordPress 
Php :: laravel collection intersectKey 
Php :: laravel project preparation,laravel project create 
Php :: Print all before characters once string found | matched string return 
Php :: Jaygaah Free Shipping Woocommerce 
Php :: Multiple databases user validation in Laravel 
Php :: if laravel pagiantion not found error occured then 
Php :: default time zone for europe php 
Php :: only fetch specific array keys php 
Php :: install php56-php-ldap on ubuntu 20.04 
Php :: Dorf SMS Plugin 
Php :: php runden auf 2 stellen 
Php :: How can I share limits across multiple fields gravity forms? 
Php :: webmin apache php not working 
Php :: 150 charachter display only php 
Php :: php tasks 
Php :: laravel migration example 
Php :: generate press viewport 
Php :: Unsupported type passed 
Php :: php -phone number verification 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =