Created
January 8, 2022 04:42
-
-
Save imath/c634d9bfb575f128d76a25aaa76fc2e5 to your computer and use it in GitHub Desktop.
Code used to check the BuddyPress WP xProfile field type works as expected, see https://buddypress.org/support/topic/wordpress-specific-xprofile-meta-fields-not-saving/
This file contains 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 | |
// Exit if accessed directly. | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} | |
function maelscuttle_twitter_xprofile( $methods = array() ) { | |
$methods['twitter'] = __( 'Twitter', 'maelscuttle-textdomain' ); | |
return $methods; | |
} | |
add_filter( 'user_contactmethods', 'maelscuttle_twitter_xprofile' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment