WC_AJAX::rated
Triggered when clicking the rating footer.
Method of the class: WC_AJAX{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_AJAX::rated();
WC_AJAX::rated() WC AJAX::rated code WC 10.5.0
public static function rated() {
if ( ! current_user_can( 'manage_woocommerce' ) ) {
wp_die( -1 );
}
update_option( 'woocommerce_admin_footer_text_rated', 1 );
wp_die();
}