New filter request for bp_is_single_activity()
In /wp-content/plugins/buddypress/bp-core.php, there’s the function bp_is_single_activity() which returns true if viewing a single activity (such as through a permalink to an activity), and false otherwise.
However, the output of this function controls the layout of the page. If it returns true, then the permalink layout (with the bigger avatar and thought bubbles) is used for showing activities, and if false, then the regular layout is used.
A client liked the permalink layout better, and he wanted, in certain cases, to have the activities shown in the permalink layout. The only way to do that was by getting this function to return true, however there was no clean way of doing it, and I had to insert an “if ($condition) return true;” in this function to get it to work.
Can there be a filter added here so in special cases, when required, it can return true?
- The topic ‘New filter request for bp_is_single_activity()’ is closed to new replies.