bp_loader_activate

  • do_action( 'bp_loader_activate' )

    Source Reference:

    • Component: BuddyPress:: bp-core
      File: /bp-loader.php :: Trac Source Line: 123
      	if ( !function_exists( 'bp_get_root_blog_id' ) )
      		require ( WP_PLUGIN_DIR . '/buddypress/bp-core/bp-core-functions.php' );
      
      	// Switch the user to the new bp-default if they are using the old
      	// bp-default on activation.
      	if ( 'bp-sn-parent' == get_blog_option( bp_get_root_blog_id(), 'template' ) && 'bp-default' == get_blog_option( bp_get_root_blog_id(), 'stylesheet' ) )
      		switch_theme( 'bp-default', 'bp-default' );
      
      	do_action( 'bp_loader_activate' );
      }
      register_activation_hook( 'buddypress/bp-loader.php', 'bp_loader_activate' );
      endif;
      
      if ( !function_exists( 'bp_loader_deactivate' ) ) :
      // Deactivation Function
      function bp_loader_deactivate() {
      	do_action( 'bp_loader_deactivate' );
      }
      register_deactivation_hook( 'buddypress/bp-loader.php', 'bp_loader_deactivate' );
      

Comments are closed.