Created
March 8, 2022 00:11
-
-
Save KaineLabs/d48666b7e3cf5bb1ae635f8ed52dd9bb to your computer and use it in GitHub Desktop.
Delete All Old Youzer Options From Database.
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
<?php | |
/** | |
* Delete All Old Youzer Options From Database. | |
*/ | |
add_action( 'init', 'yzc_delete_all_youzer_options' ); | |
function yzc_delete_all_youzer_options() { | |
global $wpdb; | |
// Delete Old Fields | |
$options = $wpdb->get_results( "DELETE FROM " . $wpdb->prefix . "options WHERE option_name Like 'yz_%'" ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment