Tag Info

Hot answers tagged


The rich_editing user option stores this check box value: wether or not do enable the visual editor for that particular user. If it's disabled then the content editor will look like this:


You're close - just need to tweak your arguments: <?php echo get_user_meta( $customer_id, 'billing_phone', true ) ?> Just make sure $customer_id is the ID of the user - you probably want get_current_user_id() instead.


Here a code example with explanation in the comments: // First a check whether the use is logged in or not: if ( is_user_logged_in() ) { // The user is logged, retrieve the user id $user_ID = get_current_user_id(); // Now we have got the user's id, we can pass it to the function 'count_user_posts': echo 'Number of posts published by user: ' . ...

Only top voted, non community-wiki answers of a minimum length are eligible