Skip to main content

has_required_field()

public static function has_required_field( $form )

Whether the form has a required field.

Since: 2.5

Source: common.php:2762

Parameters

NameTypeDefaultDescription
$form

Returns

  • bool — Whether there is a required field in the form.