[buddypress-trac] [BuddyPress Trac] #7342: Enhancement request: Check if a member type directory is being viewed

buddypress-trac noreply at wordpress.org
Fri Nov 11 23:15:41 UTC 2016


#7342: Enhancement request: Check if a member type directory is being viewed
--------------------------+-----------------------------
 Reporter:  henry.wright  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  2.7.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I'm not sure of the best way to do this. Maybe {{{bp_is_directory()}}} can
 be modified to accept a string argument?


 {{{
 if ( bp_is_directory( 'student' ) ) {
     // example.com/members/type/student is currently being viewed.
 }
 }}}

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


More information about the buddypress-trac mailing list