xprofile_groups_saved_group

  • do_action( 'xprofile_groups_saved_group', $group )

    Source Reference:

    • Component: BuddyPress:: bp-xprofile
      File: /bp-xprofile/bp-xprofile-admin.php :: Trac Source Line: 218
      				$message = __( 'There was an error saving the group. Please try again', 'buddypress' );
      				$type    = 'error';
      			} else {
      				$message = __( 'The group was saved successfully.', 'buddypress' );
      				$type    = 'success';
      
      				if ( 1 == $group_id )
      					bp_update_option( 'bp-xprofile-base-group-name', $group->name );
      
      				do_action( 'xprofile_groups_saved_group', $group );
      			}
      
      			unset( $_GET['mode'] );
      			xprofile_admin( $message, $type );
      
      		} else {
      			$group->render_admin_form( $message );
      		}
      	} else {
      		$group->render_admin_form();
      

Hook: add_action: xprofile_groups_saved_group instances (1)

  • add_action( 'xprofile_groups_saved_group',   'xprofile_clear_profile_groups_object_cache' )
    $function_to_add: xprofile_clear_profile_groups_object_cache
    $priority: 0
    $accepted_args: 0

    Source Reference:

Comments are closed.