Un motore di ricerca WordPress per sviluppatori e autori di temi



delete_all_user_settings ›

Da2.7.0
Deprecaton/a
delete_all_user_settings ( Nessun parametro )
Definito a:
Codex:

Delete the user settings of the current user.



Sorgenti

function delete_all_user_settings() {
	$user_id = get_current_user_id();
	if ( ! $user_id ) {
		return;
	}

	update_user_option( $user_id, 'user-settings', '', false );
	setcookie( 'wp-settings-' . $user_id, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH );
}