Created
December 5, 2014 10:37
-
-
Save ooooak/be84af6f4f3f76d5847e to your computer and use it in GitHub Desktop.
change spam status
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
if (!function_exists('update_user_status')){ | |
include(ABSPATH . "wp-admin/includes/ms.php"); | |
} | |
if (!update_user_status($user_id, 'spam', $spam_value)){ | |
return array(true, 'Unable to change spam status'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment