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
- Woocomerce custom add to cart button edit functionality [closed]
- How to change product title color in shop page if product has specific product tag (Woocommerce)?
- Restricting page by user role
- How do I add a custom css to all posts without affecting homepage css? [closed]
- How can I modify footer when footer.php calls to another file?
- Advanced Custom Fields not displaying
- Exclude posts with specific metadata from search?
- How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:\wamp\www\…….\wp-includes\class-wp-hook.php on line 286
- How to set the WordPress logo programmatically with PHP
- Function won’t run onclick using Ajax
- Add login hyperlink to secondary navigation menu
- Where is this function’s callback getting its arguments from?
- List all blogs, but exclude the main site
- change the default order of posts only for specific categories
- Check class_exists before class definition / Doxygen problem
- Extract links from content
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- How to get post category list as select in front-end?
- Is it possible to add a custom page to a free WordPress site? [closed]
- How to use functions [closed]
- Splitting the_content() by size?
- How to Fix an Archive.php That Displays All Posts?
- Add a select-option to the default widgets
- Menu not styling. New menus functionality giving me a headache
- Site DOES NOT LOAD after 3.1 update
- Customizer control save then return to default
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- Adding an “Upgrade Subscription” button to an Elementor page
- Dropdown category field inside repeatable metabox
- Retrieve alt text by referencing the img src
- Ajax filter with loadmore button
- Create a temporal post
- Dynamic Banner Text based on Subdomain
- Add parent menu item in sub-menu in custom nav_walker
- Custom Bulk Actions handler not firing
- How to fix blank pagination links?
- main menu page redirects to user ID
- How to have Function of a plugin using global vars into a shortcode?
- Auto create description in post
- error with WP custom form
- Cant get theme to change footer color through theme customizer
- Show div only if product has attribute
- hello can you advise how to fix the error?
- YouTube embeds Cross-Origin Request Blocked (CORB) error
- How to change post date and post time in WordPress automatically with a function
- Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder
- WordPress generating Undefined Variable warning