run after theme switched or theme deactived, used for remove table database after theme deactived/
add_action("switch_theme", "a"); function a(){ global $wpdb; $sql = "DROP TABLE wp_tesaja"; $wpdb->query($sql); }
Last updated 10 months ago