Skip to:
Content

BuddyPress.org

Changeset 13162


Ignore:
Timestamp:
12/10/2021 12:40:38 AM (3 years ago)
Author:
imath
Message:

Add an early hook to inform the current page is not a BuddyPress one

Props hasanuzzamanshamim

Fixes #8429

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-catchuri.php

    r13108 r13162  
    249249
    250250    // This is not a BuddyPress page, so just return.
    251     if ( empty( $matches ) )
     251    if ( empty( $matches ) ) {
     252        /**
     253         * Fires when the the current page is not a BuddyPress one.
     254         *
     255         * @since 10.0.0
     256         */
     257        do_action( 'is_not_buddypress' );
    252258        return false;
     259    }
    253260
    254261    $wp_rewrite->use_verbose_page_rules = false;
Note: See TracChangeset for help on using the changeset viewer.