tbkcp_add_user_meta.php

Summary
tbkcp_add_user_meta.php
Adds user meta from a comma seperated string in the form settingsAuthor: Paul MacLean
tbkcp_admin_logoAdds user meta from a comma seperated string in the form settings
Functions
__constructAdds the user profile show and edit actions
user_profile_edit_actionShows the new labels in the user settings based on the inputted string in the form options
user_profile_update_actionUpdates the user profile settings with the new user meta
form_optionsAllows admins to specify new user meta with a comma seperated string

Adds user meta from a comma seperated string in the form settings

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')

tbkcp_admin_logo

Adds user meta from a comma seperated string in the form settings

Summary
Functions
__constructAdds the user profile show and edit actions
user_profile_edit_actionShows the new labels in the user settings based on the inputted string in the form options
user_profile_update_actionUpdates the user profile settings with the new user meta
form_optionsAllows admins to specify new user meta with a comma seperated string

Functions

__construct

function __construct()

Adds the user profile show and edit actions

user_profile_edit_action

function user_profile_edit_action($user)

Shows the new labels in the user settings based on the inputted string in the form options

user_profile_update_action

function user_profile_update_action($user_id)

Updates the user profile settings with the new user meta

form_options

function form_options()

Allows admins to specify new user meta with a comma seperated string

function __construct()
Adds the user profile show and edit actions
function user_profile_edit_action($user)
Shows the new labels in the user settings based on the inputted string in the form options
function user_profile_update_action($user_id)
Updates the user profile settings with the new user meta
function form_options()
Allows admins to specify new user meta with a comma seperated string
Close