bp_ . $this->id . _setup_globals

  • do_action( 'bp_' . $this->id . '_setup_globals' )

    Source Reference:

    • Component: BuddyPress:: bp-core
      File: /bp-core/bp-core-component.php :: Trac Source Line: 144
      			foreach ( $r['global_tables'] as $global_name => $table_name )
      				$this->$global_name = $table_name;
      
      		/** BuddyPress ********************************************************/
      
      		// Register this component in the loaded components array
      		$bp->loaded_components[$this->slug] = $this->id;
      
      		// Call action
      		do_action( 'bp_' . $this->id . '_setup_globals' );
      	}
      
      	/**
      	 * Include required files
      	 *
      	 * Please note that, by default, this method is fired on the bp_include hook, with priority
      	 * 8. This is necessary so that core components are loaded in time to be available to
      	 * third-party plugins. However, this load order means that third-party plugins whose main
      	 * files are loaded at bp_include with priority 10 (as recommended), will not be loaded in
      	 * time for their includes() method to fire automatically.
      

Comments are closed.