xprofile_fields_deleted_field

  • do_action( 'xprofile_fields_deleted_field', $field )

    Source Reference:

    • Component: BuddyPress:: bp-xprofile
      File: /bp-xprofile/bp-xprofile-admin.php :: Trac Source Line: 337
      	$field = new BP_XProfile_Field( $field_id );
      
      	if ( !$field->delete() ) {
      		$message = sprintf( __('There was an error deleting the %s. Please try again', 'buddypress' ), $type );
      		$type = 'error';
      	} else {
      		$message = sprintf( __('The %s was deleted successfully!', 'buddypress' ), $type );
      		$type = 'success';
      
      		do_action( 'xprofile_fields_deleted_field', $field );
      	}
      
      	unset( $_GET['mode'] );
      	xprofile_admin( $message, $type );
      }
      
      /**************************************************************************
       xprofile_ajax_reorder_fields()
      
       Handles the ajax reordering of fields within a group
      

Comments are closed.