public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/admin/functions.php
/**
 * Shows reset success message in right place in HTML to not trigger errors.
 *
 * @since 1.0.0
 */
Shows reset success message in right place in HTML to not trigger errors.
Shows reset success message in right place in HTML to not trigger errors .
function WPCW_users_processUserResetAbility_showSuccess() {
	if ( isset( $_GET['wpcw_reset'] ) ) {
		wpcw_add_admin_notice_success( esc_html__( 'Student(s) progess has been reset.', 'wp-courseware' ) );
		wp_safe_redirect( remove_query_arg( 'wpcw_reset', $_SERVER['REQUEST_URI'] ) );
		exit;
	}
	if ( isset( $_GET['wpcw_reset_classroom'] ) ) {
		wpcw_add_admin_notice_success( esc_html__( 'Course classroom has been reset.', 'wp-courseware' ) );
		wp_safe_redirect( remove_query_arg( 'wpcw_reset_classroom', $_SERVER['REQUEST_URI'] ) );
		exit;
	}
}
function WPCW_users_processUserResetAbility_showSuccess ( ) { if ( isset ( $ _GET [ 'wpcw_reset' ] ) ) { wpcw_add_admin_notice_success ( esc_html__ ( 'Student(s) progess has been reset.' , 'wp-courseware' ) ) ; wp_safe_redirect ( remove_query_arg ( 'wpcw_reset' , $ _SERVER [ 'REQUEST_URI' ] ) ) ; exit ; } if ( isset ( $ _GET [ 'wpcw_reset_classroom' ] ) ) { wpcw_add_admin_notice_success ( esc_html__ ( 'Course classroom has been reset.' , 'wp-courseware' ) ) ; wp_safe_redirect ( remove_query_arg ( 'wpcw_reset_classroom' , $ _SERVER [ 'REQUEST_URI' ] ) ) ; exit ; } }
Shows reset success message in right place in HTML to not trigger errors.
Shows reset success message in right place in HTML to not trigger errors .