wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_get_user_contact_methods › WordPress Function

Od3.7.0
Przestarzałyn/a
› wp_get_user_contact_methods ( $user = null )
Parametry:
  • (WP_User|null) $user Optional. WP_User object.
    Wymagane: Nie
    Domyślny: null
Powrót:
  • (string[]) Array of contact method labels keyed by contact method.
Zdefiniowane na:
Codex:
Dziennik zmian:
  • 6.9.0

Sets up the user contact methods.

Default contact methods were removed for new installations in WordPress 3.6 and completely removed from the codebase in WordPress 6.9. Use the {@see 'user_contactmethods'} filter to add or remove contact methods.


Źródło

function wp_get_user_contact_methods( $user = null ) {
	$methods = array();

	/**
	 * Filters the user contact methods.
	 *
	 * @since 2.9.0
	 *
	 * @param string[]     $methods Array of contact method labels keyed by contact method.
	 * @param WP_User|null $user    WP_User object or null if none was provided.
	 */
	return apply_filters( 'user_contactmethods', $methods, $user );
}