Skip to content

Instantly share code, notes, and snippets.

@jimmy89Li
Created May 10, 2017 10:45
Show Gist options
  • Save jimmy89Li/e79a4dd8141e40aee0d8a0fef771b1d8 to your computer and use it in GitHub Desktop.
Save jimmy89Li/e79a4dd8141e40aee0d8a0fef771b1d8 to your computer and use it in GitHub Desktop.
Update updatedDate for last updated Category
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