Here is a quick snippet to modify title tag for page, post, category using wp_title hook.
<?php add_filter('wp_title', 'modify_title', 20); function modify_title($title) { return $title . ' foo'; } ?>
No comments:
Post a Comment