tbkcp_add_user_meta.php | |
Adds user meta from a comma seperated string in the form settings | Author: Paul MacLean |
tbkcp_admin_logo | Adds user meta from a comma seperated string in the form settings |
Functions | |
__construct | Adds the user profile show and edit actions |
user_profile_edit_action | Shows the new labels in the user settings based on the inputted string in the form options |
user_profile_update_action | Updates the user profile settings with the new user meta |
form_options | Allows admins to specify new user meta with a comma seperated string |
Author: Paul MacLean
Usage Example
1. Click the *settings* link after enabling to see the form options 2. Add the comma seperated user meta labels ex (Twitter,Postal Code) 3. Usage outside the loop: echo get_user_meta($current_user->ID, 'your-label', true)) Usage in the loop : echo get_the_author_meta('your-label')
Adds user meta from a comma seperated string in the form settings
Functions | |
__construct | Adds the user profile show and edit actions |
user_profile_edit_action | Shows the new labels in the user settings based on the inputted string in the form options |
user_profile_update_action | Updates the user profile settings with the new user meta |
form_options | Allows admins to specify new user meta with a comma seperated string |
Adds the user profile show and edit actions
function __construct()
Shows the new labels in the user settings based on the inputted string in the form options
function user_profile_edit_action( $user )
Updates the user profile settings with the new user meta
function user_profile_update_action( $user_id )
Allows admins to specify new user meta with a comma seperated string
function form_options()