wpsc_hide_boost_banner()WPSCache 1.0

Admin ajax action: hide the Boost Banner.

No Hooks.

Return

null. Nothing.

Usage

wpsc_hide_boost_banner();

wpsc_hide_boost_banner() code WPSCache 1.9.2

function wpsc_hide_boost_banner() {
	check_ajax_referer( 'wpsc_dismiss_boost_banner', 'nonce' );
	update_user_option( get_current_user_id(), 'wpsc_dismissed_boost_banner', '1' );

	wp_die();
}