BP_XProfile_Field_Type_WordPress_Textbox::get_field_settings( int $field_id )

Get settings for a given WordPress field.

Parameters Parameters


(int) (Required) ID of the field.

Top ↑

Return Return

(string) The meta_key used for this field.

Source Source

File: bp-xprofile/classes/class-bp-xprofile-field-type-wordpress-textbox.php

	public static function get_field_settings( $field_id ) {
		$wp_user_key = bp_xprofile_get_meta( $field_id, 'field', 'wp_user_key', true );

		return sanitize_key( $wp_user_key );

Top ↑

Changelog Changelog

Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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