WordPress at Your Fingertips
function is not described

WC_AJAX::rated() public WC 1.0

Triggered when clicking the rating footer.

{} It's a method of the class: WC_AJAX{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_AJAX::rated();

Code of WC_AJAX::rated() WC 5.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();
}