update_user_status [ WordPress Function ]
update_user_status ( $id, $pref, $value, $deprecated = null )
| Defined at: |
|
Benzer Fonksiyonlar: update_user_meta, update_usermeta, update_user_caches, update_blog_status, update_user_option
No description yet.
Source
<?php
function update_user_status( $id, $pref, $value, $deprecated = null ) {
global $wpdb;
if ( null !== $deprecated )
_deprecated_argument( __FUNCTION__, '3.1' );
$wpdb->update( $wpdb->users, array( $pref => $value ), array( 'ID' => $id ) );
$user = new WP_User( $id );
clean_user_cache( $user );
if ( $pref == 'spam' ) {
if ( $value == 1 )
do_action( 'make_spam_user', $id );
else
do_action( 'make_ham_user', $id );
}
return $value;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/update user status « WordPress Codex
Function Reference/update user status. Source File. update_user_status() is located in wp-admin/includes/ms.php . See also index of Function Reference and ...
codex.wordpress.org - update_user_status (WordPress Function) - WPSeek.com
WordPress lookup for update_user_status, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - Update User Status - HybridAuth
Update User Status. Important Currently only Facebook, Twitter, Identica, LinkedIn, QQ, Sina, Murmur, Pixnet and Plurk do support this feature. Others providers ...
hybridauth.sourceforge.net - Use Facebook Javascript SDK in an Javascript Bookmarklet to ...
Use Facebook Javascript SDK in an Javascript Bookmarklet to update User Status? up vote 0 down vote favorite. share [g+] share [fb] share [tw] ...
stackoverflow.com