Skip to content

Instantly share code, notes, and snippets.

@ooooak
Created December 5, 2014 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ooooak/be84af6f4f3f76d5847e to your computer and use it in GitHub Desktop.
Save ooooak/be84af6f4f3f76d5847e to your computer and use it in GitHub Desktop.
change spam status
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