WC_AJAX::rated()
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() WC AJAX::rated code WC 9.7.1
public static function rated() { if ( ! current_user_can( 'manage_woocommerce' ) ) { wp_die( -1 ); } update_option( 'woocommerce_admin_footer_text_rated', 1 ); wp_die(); }