show_user_profile
“show_user_profile” action hook is use to add additional input to the WPCargo User Profile Section in the User profile settings.
Copy and paste this sample code in the theme functions.php file
//Add Company Address function add_show_user_profile_callback( $user ){ ?> <tr> <th><label for="comp_address"><?php esc_html_e('Company Address', 'wpcargo' ); ?></label></th> <td> <input id="comp_address" class="update_account" type="text" name="comp_address" value="<?php echo ( get_user_meta( $user->ID, 'comp_address', TRUE ) ) ? esc_html( get_user_meta( $user->ID, 'comp_address', TRUE ) ) : '' ; ?>" /> </td> </tr> <?php } add_action('show_user_profile', 'add_show_user_profile_callback', 30, 1);