wordpress - Removing social networking links from profile fields -


I've seen some fields to be removed and to add contact area (via hook) online. But no one seems to get rid of the social network in the WordPress profile sections.

Enter image details here

Here is the code, the social network Have a hook to delete the field? I am using a plugin called WP User Frontend and it is dragging these fields.

  function modify_contact_methods ($ profile_fields) {// Add new field $ profile_fields ['twitter'] = 'Twitter username'; $ Profile_fields ['facebook'] = 'Facebook URL'; $ Profile_fields ['gplus'] = 'Google+ URL'; // Delete unset ($ profile_fields ['google']) to old areas; Return $ $ profile_fields; } Add_filter ('user_contactmethods', 'modify_contact_methods');  

Create a very simple plugin that will wait for other plugins to load , Then use the function which is to remove the hook that is added by another plugin.

  & lt ;? Php / ** * Plugin Name: (SO) WP User Frontend Contact Methods * / add_action ('plugins_loaded', 'Remove_custom_user_contact_methods'); Function remove_custom_user_contact_methods () {remove_filter ('user_contactmethods', 'modify_contact_methods'); }  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -