bp_core_component_slug_from_root_slug

  • apply_filters( 'bp_core_component_slug_from_root_slug', $slug, $root_slug )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-functions.php :: Trac Source Line: 196
       * @since 1.5
       *
       * @param str $root_slug The root slug, which comes from $bp->pages->[component]->slug
       * @return str $slug The short slug for use in the middle of URLs
       */
      function bp_core_component_slug_from_root_slug( $root_slug ) {
      	$slug_chunks = explode( '/', $root_slug );
       	$slug        = array_pop( $slug_chunks );
      
       	return apply_filters( 'bp_core_component_slug_from_root_slug', $slug, $root_slug );
      }
      
      function bp_core_do_network_admin() {
      	$do_network_admin = false;
      
      	if ( is_multisite() && !bp_is_multiblog_mode() )
      		$do_network_admin = true;
      
      	return apply_filters( 'bp_core_do_network_admin', $do_network_admin );
      }
      

Comments are closed.