Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Activity, Groups Cluttered?


Boone Gorges
Keymaster

@boonebgorges

@scotm – Hm, I have a dev environment just like that and it works fine. Maybe in a bp-custom file instead. Create a file called bp-custom.php in your plugins directory. Make sure you have php delimiters at the beginning and end of the file, and put the code above in between them. So the whole file would be:

<?php
function my_custom_query_filter( $query_string ) {
global $bp;
if ( bp_is_activity_component() && !$bp->displayed_user->id )
$query_string .= '&action=activity_update';

return $query_string;
}
add_filter( 'bp_dtheme_ajax_querystring', 'my_custom_query_filter' );
?>

Skip to toolbar