WC_AJAX::rated()public staticWC 1.0

Triggered when clicking the rating footer.

Method of the class: WC_AJAX{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_AJAX::rated();

WC_AJAX::rated() code WC 8.9.0

public static function rated() {
	if ( ! current_user_can( 'manage_woocommerce' ) ) {
		wp_die( -1 );
	}
	update_option( 'woocommerce_admin_footer_text_rated', 1 );
	wp_die();
}