bp_nouveau_get_wp_profile_fields( WP_User $user = null )

Get the WP Profile fields for all or a specific user

Parameters Parameters


(WP_User) (Optional) The user object. Optional.

Default value: null

Top ↑

Return Return

(array) The list of WP Profile fields

Source Source

File: bp-templates/bp-nouveau/includes/members/functions.php

function bp_nouveau_get_wp_profile_fields( $user = null ) {
	 * Filters the contact methods to be included in the WP Profile fields for a specific user.
	 * Provide a chance for plugins to avoid showing the contact methods they're adding on front end.
	 * @since 3.0.0
	 * @param array   $value Array of user contact methods.
	 * @param WP_User $user  WordPress user to get contact methods for.
	$contact_methods = (array) apply_filters( 'bp_nouveau_get_wp_profile_field', wp_get_user_contact_methods( $user ), $user );

	$wp_fields = array(
		'display_name'     => __( 'Name', 'buddypress' ),
		'user_description' => __( 'About Me', 'buddypress' ),
		'user_url'         => __( 'Website', 'buddypress' ),

	return array_merge( $wp_fields, $contact_methods );

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.