get_bb_location overite doesn’t work
-
If you have a complete new php file that acts like a new page, you can add it’s location with the below code, BUT I want to rename a existing php file. The problem is that its a filtered page: view.php?view=port. The problem is that this is still seen as view.php. How do I change this so that view.php?view=port is seen as a total new page so that the code below works and the location is added?
function bbport_location() {
if (bb_find_filename($_SERVER['PHP_SELF']) == "view.php?view=port"):
return "port-page";
endif;
}
add_filter( 'get_bb_location', 'bbport_location' );
function is_bbport() {
if ( 'port-page' == get_bb_location() )
return true;
else
return false;
}
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.