March 2020
Beginner
660 pages
18h 28m
English
Take the following steps to add new custom fields to the backend user profile:
add_action('show_user_profile', 'wpccp_chapter5_user_extra_fields');add_action('edit_user_profile', 'wpccp_chapter5_user_extra_fields');
function wpccp_chapter5_user_extra_fields($user){ if ( current_user_can('edit_user', $user->ID) ) { // Step 9 Code $display = "<table class='form-table'>"; $display .= "<tr><th>".__('Job Title','wpccp')."</th> ...Read now
Unlock full access