Last active
September 21, 2023 22:43
-
-
Save jeffvee/03029119e9203c508262dbfbc2bec900 to your computer and use it in GitHub Desktop.
Remove extra contact methods for Listify theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove infamously extra contact methods add by Listify theme used with WP Job Manager | |
add_filter('user_contactmethods', function($methods) { | |
// list of items to remove | |
$unset_items = ['pinterest', 'linkedin', 'github']; | |
foreach($unset_items as $item) { | |
unset($methods[$item]); | |
} | |
return $methods; | |
}, 20); // priority 20 to make sure this runs after listify_user_contactmethods | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment