Access_Control::enabled( awsmug\Torro_Forms\DB_Objects\Forms\Form $form )

Checks whether the access control is enabled for a specific form.

Description

See also

Parameters

$form

(awsmug\Torro_Forms\DB_Objects\Forms\Form) (Required) Form object to check.

Return

(bool) True if the access control is enabled, false otherwise.

Source

File: src/modules/access-controls/access-control.php

	public function enabled( $form ) {
		return $this->get_form_option( $form->id, 'enabled', false );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.