Created
October 1, 2014 22:36
-
-
Save jeffikus/7202d2d0a2b9b04c4b2b to your computer and use it in GitHub Desktop.
WPDB Delete
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 | |
// table, $where, $where_format | |
$wpdb->delete( | |
$wpdb->posts, | |
array( | |
'ID' => 5 | |
), | |
array( | |
'%d' | |
) | |
); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment