Retrieve user option that can be either per Site or per Network.
If the user ID is not given, then the current user will be used instead. The filter for the result will also pass the original option name and finally the user data object as the third parameter.
The function will first check for the site-specific user metadata, then the network-wide user metadata. The option can either be modified or set by a plugin.
<?php get_user_option( $option, $user ) ?>
<?php $bar = get_user_option( 'show_admin_bar_front', get_current_user_id() ); if ( $bar == 'true' ) { echo 'The admin bar is enabled'; } else { echo 'The admin bar is disabled'; } ?>
get_user_option() is located in wp-includes/user.php
.
add_user_meta(), delete_user_meta(), get_user_meta(), update_user_meta(), get_user_option(), delete_user_option(), update_user_option(),