[buddypress-trac] [BuddyPress Trac] #6725: Problem with bp_is_group_activity()

buddypress-trac noreply at wordpress.org
Wed Nov 11 19:01:43 UTC 2015


#6725: Problem with bp_is_group_activity()
--------------------------+-----------------------------
 Reporter:  henry.wright  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  API           |    Version:  2.3.3
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 There seems to be a problem with {{{bp_is_group_activity()}}}

 For example, when viewing example.com/groups/group-name, I'd expect the
 following to output {{{true}}}. It actually outputs {{{false}}}.

 {{{
 function my_test() {
         if ( bp_is_group_activity() ) {
                 echo "true";
         } else {
                 echo "false";
         }
 }
 add_action( 'bp_before_group_activity_post_form', 'my_test' );
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6725>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list