groups_custom_edit_steps

  • do_action( 'groups_custom_edit_steps' )

    Source Reference:

    • Component: BuddyPress:: bp-themes
      File: /bp-themes/bp-default/groups/single/admin.php :: Trac Source Line: 342
      			<p><?php _e( 'There are no pending membership requests.', 'buddypress' ); ?></p>
      		</div>
      
      	<?php endif; ?>
      
      	<?php do_action( 'bp_after_group_membership_requests_admin' ); ?>
      
      <?php endif; ?>
      
      <?php do_action( 'groups_custom_edit_steps' ) // Allow plugins to add custom group edit screens ?>
      
      <?php /* Delete Group Option */ ?>
      <?php if ( bp_is_group_admin_screen( 'delete-group' ) ) : ?>
      
      	<?php do_action( 'bp_before_group_delete_admin' ); ?>
      
      	<div id="message" class="info">
      		<p><?php _e( 'WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?></p>
      	</div>
      

Hook: add_action: groups_custom_edit_steps instances (1)

  • add_action( 'groups_custom_edit_steps', array( &$this, 'edit_screen' ) )
    $function_to_add: array( &$this
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-classes.php :: Trac Source Line: 1263
      		// Construct the admin edit tab for the new group extension
      		if ( !empty( $this->enable_edit_item ) && !empty( $bp->is_item_admin ) ) {
      			add_action( 'groups_admin_tabs', create_function( '$current, $group_slug', '$selected = ""; if ( "' . esc_attr( $this->slug ) . '" == $current ) $selected = " class="current""; echo "<li{$selected}><a href="' . bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/{$group_slug}/admin/' . esc_attr( $this->slug ) . '">' . esc_attr( $this->name ) . '</a></li>";' ), 10, 2 );
      
      			// Catch the edit screen and forward it to the plugin template
      			if ( bp_is_groups_component() && bp_is_current_action( 'admin' ) && bp_is_action_variable( $this->slug, 0 ) ) {
      				// Check whether the user is saving changes
      				$this->edit_screen_save();
      
      				add_action( 'groups_custom_edit_steps', array( &$this, 'edit_screen' ) );
      
      				if ( '' != locate_template( array( 'groups/single/home.php' ), false ) ) {
      					bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );
      				} else {
      					add_action( 'bp_template_content_header', create_function( '', 'echo "<ul class="content-header-nav">"; bp_group_admin_tabs(); echo "</ul>";' ) );
      					add_action( 'bp_template_content', array( &$this, 'edit_screen' ) );
      					bp_core_load_template( apply_filters( 'bp_core_template_plugin', '/groups/single/plugins' ) );
      				}
      			}
      		}
      

Comments are closed.