Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Modify Topic Title Tags


chrishajer
Participant

@chrishajer

I don’t think you can do a case without a switch first. Something like this:

<?php
/*
Plugin Name: Title Modifier
Author: Matt George
*/
add_filter('bb_title', 'titlemodify');

function titlemodify( $title ) {
//your code that does something to $title;

switch ( bb_get_location() ) {
case 'topic-page':
$title[] = get_topic_title();
break;
}
return $title;
}
?>

Skip to toolbar