Home > AI > Backend > Wordpress >

the_content

Example

<!-- add_filter --> 
<?php 
date_default_timezone_set("Asia/Shanghai"); 
function content_date($value){ 
    return date('Y-m-d H:i:s').$value; 
} 
function content_author($value){ 
    return $value.'——By SharkDeng'.'<div>如果你喜欢我的文章,欢迎红包赞赏</div>'; 
} 
add_filter('the_content', 'content_date'); add_filter('the_content', 'content_author'); 
?> 
<!-- end -->

Leave a Reply