BuddyPressCommand::get_field_id( int|string $field_id )

Get field from an ID.


Parameters Parameters

$field_id

(int|string) (Required) Field ID or Field name.


Top ↑

Return Return

(int) Field ID.


Source Source

File: cli/src/command.php

	protected function get_field_id( $field_id ) {
		if ( ! is_numeric( $field_id ) ) {
			return xprofile_get_field_id_from_name( $field_id );
		}

		return absint( $field_id );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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