Created
May 10, 2017 10:45
-
-
Save jimmy89Li/e79a4dd8141e40aee0d8a0fef771b1d8 to your computer and use it in GitHub Desktop.
Update updatedDate for last updated Category
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
if ($_SERVER['REQUEST_METHOD'] == 'POST') { | |
$wpdb->query("UPDATE wp_terms SET updatedDate=NOW() WHERE term_id='".$_POST['tag_ID']."'"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment