Template Tags
Template Tags 是一些get某些内容并输出的函数,例如经常用于theme
可以自己定义一些tempalte tag 函数
http://codex.wordpress.org/Template_Tags
1 <?php 2 /* 3 Plugin Name: My copyright plugin 4 Plugin URI: http://www.falkonproductions.com/copyrightPlugin/ 5 Description: This plugin does things you never thought were possible. 6 Author: Drew Falkman 7 Version: 1.0 8 Author URI: http://www.falkonproductions.com/ 9 */ 10 global $wp_version; 11 12 if ( !version_compare($wp_version,"3.0",">=") ) { 13 die("You need at least version 3.0 of WordPress to use the copyright plugin."); 14 } 15 16 function add_copyright() { 17 $copyright_message = "Copyright ".date(Y)." Falkon Productions, All Rights Reserved"; 18 echo $copyright_message; 19 } 20 add_action("wp_footer",add_copyright);
浙公网安备 33010602011771号