Skip to content

Instantly share code, notes, and snippets.

@tdmrhn
Created November 21, 2023 08:15
Show Gist options
  • Save tdmrhn/4269b1df88bf86b3f96f6216f5f166c5 to your computer and use it in GitHub Desktop.
Save tdmrhn/4269b1df88bf86b3f96f6216f5f166c5 to your computer and use it in GitHub Desktop.
WP remove all social networks iin profile backend
<?php
add_action('init', function () {
//if (!current_user_can('manage_options')) { // Remove all contact methods for non-admin users
remove_all_filters('user_contactmethods');
//}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment