[buddypress-trac] [BuddyPress Trac] #8429: Fire a hook when non-BP page is detected

buddypress-trac noreply at wordpress.org
Tue Jan 26 17:22:05 UTC 2021


#8429: Fire a hook when non-BP page is detected
-------------------------+-----------------------------
 Reporter:  Gabe462      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Core         |    Version:  7.1.0
 Severity:  normal       |   Keywords:  needs-patch
-------------------------+-----------------------------
 at /src/bp-core/bp-core-catchuri.php:252

 I'd like there to be a do_action( 'bp_not_a_buddypress_page' );

 {{{#!php
 <?php
 if ( empty( $matches ) ) {
     do_action( 'bp_not_a_buddypress_page' );
     return false;
 }
 }}}


 This leaves a convenient hook that I'd use for preventing enqueueing of BP
 assets that aren't used on other parts of the site.

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


More information about the buddypress-trac mailing list