Last active
November 14, 2015 01:05
-
-
Save besimhu/fe5648e7014588c132dc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
function delete_its_transients() { | |
global $post; | |
if( $post->post_type == 'cpt' ) { | |
delete_transient( 'transient_name' ); | |
} | |
} | |
add_action( 'save_post', 'delete_its_transients' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment