bp_get_root_slug

  • apply_filters( 'bp_get_root_slug', $root_slug, $component )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-template.php :: Trac Source Line: 669
      			if ( !empty( $bp->{$component_name}->root_slug ) ) {
      				$root_slug = $bp->{$component_name}->root_slug;
      			}
      		}
      
      		// No specific root slug, so fall back to component slug
      		if ( empty( $root_slug ) )
      			$root_slug = $component;
      
      		return apply_filters( 'bp_get_root_slug', $root_slug, $component );
      	}
      
      /**
       * Return the component name based on the current root slug
       *
       * @since BuddyPress {r3923}
       * @global object $bp Global BuddyPress settings object
       * @param str $root_slug Needle to our active component haystack
       * @return mixed False if none found, component name if found
       */
      

Comments are closed.