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

buddypress-trac noreply at wordpress.org
Sat Nov 12 20:19:55 UTC 2016


#7342: Enhancement request: Check if a member type directory is being viewed
--------------------------+----------------------------------
 Reporter:  henry.wright  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Under Consideration
Component:  Core          |     Version:  2.7.2
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |
--------------------------+----------------------------------
Changes (by slaFFik):

 * keywords:   => dev-feedback
 * type:  defect (bug) => enhancement
 * milestone:  Awaiting Review => Under Consideration


Comment:

 I believe, it's better to have 2 params: `bp_is_directory( $component,
 $args )`
 So in your example to have something like:
 {{{#!php
 if ( bp_is_directory( buddypress()->members->id, [ 'type' => 'student' ] )
 ) {}
 }}}

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


More information about the buddypress-trac mailing list