Shark Deng

Interactive Designer @Shanju Design in Shanghai

touched caffe / mxnet / python / wordpress / bootstrap / Arduino / Raspberry Pi / webgl / three.js / PIXI / 3dMax

Email

Github

WordPress – the_content filter

2019-11-20 16:47:23

给文章内容,增加统一额外内容

<!-- 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 -->

 



——By SharkDeng
如果你喜欢我的文章,欢迎红包赞赏

Leave a Reply

Your email address will not be published. Required fields are marked *