What you need to look at is hooking into the user_contactmethods
filter.
Perhaps something along these lines:
function test_new_contact(){
$user_contactmethods = array(
'aim' => __('AIM'),
'yim' => __('Yahoo IM'),
'jabber' => __('Jabber / Google Talk'),
'twitter' => __( 'Enter Twitter ID' ),
);
return $user_contactmethods;
}
add_filter( 'user_contactmethods', 'test_new_contact' );
Note the “core” user contact methods should be included in your filter function, unless of course you want to remove them … then simply do not include them at all.
Related Posts:
- Function to return true if current page has child pages
- Cleaning up WordPress to improve performance?
- List of all theme customizer control types?
- How to preserve PHP modifications while upgrading WordPress?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Change comments form title on a page by page basis
- Setting up the child theme so as to enable right-to-left WordPress?
- delete an array element when its date expires
- How to add default images into theme customizer image control?
- How can I default to all WordPress roles when parameter is not included in shortcode?
- Overriding a theme redux file in child theme
- How to break down importing of feeds
- PHP can I add line numbers to file_get_contents()
- Setting custom canonical urls
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Converting HTML Template to WordPress Theme
- How to check if a meta value has already been assigned to any user?
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- How to pick the default selected value in wordpress dropdown?
- How to retrieve current wordpress profile page URL?
- Modify custom field input data before creating a new post
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Need help enqueueing webfonts
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Create page template via functions.php?
- How to create a field in customize and show that in header.php?
- List post by title length
- How do i wrap woocomerce attribute in list?
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- Is there a hack for using is_page() within the function.php file?
- WP insert post Redirect after function has executed
- WP-Bakery – Add custom colors to buttons with template colors
- Trying to update Woocommerce meta values
- update_user_meta as multiple value but with same meta key
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Delete post meta by serialized meta value
- Remove node from multisites?
- Automatically refresh page if widget is added to page?
- Where can I find the declaration of `$_wp_theme_features`?
- How do I routinely extract the thumbnail of the most recent post?
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Check if values exists DB
- WordPress display name string manipulation
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- How to add button to top of theme customizer?
- How can I clear the theme mod settings?
- Display a list of users with avatar filterable with alphabets
- Select area and checkbox data is not saving?
- WP Custom tables query
- Add multiple HTML attributes to an Elementor button
- Error Warning: Declaration of description_walker::start_el after PHP upgrade [duplicate]
- Autoloading in Child Theme
- WordPress Customizer: How can you have multiple active callbacks on one control?
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- How can one utilize a variable as a callback function name for add_settings_field
- Add attribute / custom attribute to product in woocommerce
- Count the number of times the search form template gets included on a page
- Displaying theme options in css
- PHP code inside shortcodes
- Woocommerce related product text
- esc_html_e() is not translating string in wordpress [closed]
- Remove echo from shortcode
- Copyright info change – Corporate Plus Theme PHP [closed]
- Inject class in body when particular page template is used
- Echo a function inside a function
- wp_force_remove_style’ not found
- Pagination on Custom Post
- how to save checkbox data for custom setting?
- How to keep the capability of users and disable Gutenberg editor in WordPress?
- Enqueing External JS on the remote server JS
- How to add aria role and schema markup to custom walker container
- Remove submenu item from list
- is_user_logged_in returning nothing on custom page
- How to change the author box selection on a post to a custom taxonomy
- Output product category link from WP_Query
- Adding onload to body for certain pages
- How to send a php var to jQuery Ajax call with two different file
- implement custom roles in custom plugin
- Change wordpress’ database data using ajax – how to get current user id?
- not outputting medium size image URL
- How to block specific user id in custom login form?
- Best way to use variables in multiple functions?
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Cannot fetch posts with certain ‘product_cat’. WP_Query is empty
- Add custom attribute to product’s HTML to woocommerce cart page
- Detect what link user clicks and Redirect to a specific page for logged in users only
- Offset with ajax load more posts duplicates
- How fix error in the WordPress loop?
- syntax error unexpected ‘}’ at 364 line
- get_post_meta no longer working
- Showing all post from all post type in admin backstage
- Shortcode to include PHP file, pass various parameters to include?
- Why can’t I include echo inside a variable? [closed]
- Assign new post author IF another user in custom field on post transition
- Create and publish a new post every Monday, listing the post titles and links to the posts published during the previous week
- Automatically change insurance quantity based on cart total [closed]
- How to pass value to add_filter wpcf7_form_tag from another function?