Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**Función año actual**/
- function ano_shortcode() {
- return date('Y');
- }
- add_shortcode('ano', 'ano_shortcode');
- function ano_shortcode_in_title($title) {
- return do_shortcode($title);
- }
- add_filter('the_title', 'ano_shortcode_in_title');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement