bp_get_the_profile_field_is_required()

Return whether or not a profile field is required.


Return Return

(bool)


Source Source

File: bp-xprofile/bp-xprofile-template.php

	function bp_get_the_profile_field_is_required() {
		global $field;

		$retval = false;

		if ( isset( $field->is_required ) ) {
			$retval = $field->is_required;
		}

		/**
		 * Filters whether or not a profile field is required.
		 *
		 * @since 1.1.0
		 * @since 2.8.0 Added field ID.
		 *
		 * @param bool   $retval Whether or not the field is required.
		 * @param string $value  Field ID that may be required.
		 */
		return (bool) apply_filters( 'bp_get_the_profile_field_is_required', $retval, $field->id );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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