wpsc_hide_survey()WPSCache 1.0

No Hooks.

Return

null. Nothing.

Usage

wpsc_hide_survey();

Code of wpsc_hide_survey() WPSCache 1.8

function wpsc_hide_survey(){
	//nonce it
	check_ajax_referer( 'wpsc-2022-survey', 'security' );
	//update it
	update_option('wpsc_2022-survey', 0, false);
	wp_die();
}