Created
October 24, 2017 15:35
-
-
Save markonikolic985/049b5ea4c164bac37b0d754adc4126e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wp_rocket_clear_user_cache_purchase() { | |
$user = wp_get_current_user(); | |
rocket_clean_user( $user->ID ); | |
} | |
add_action( 'woocommerce_payment_complete', 'wp_rocket_clear_user_cache_purchase' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment