Members::bootstrap()

Bootstraps the submodule by setting properties.

Description

See also

Source

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

	protected function bootstrap() {
		$this->slug        = 'members';
		$this->title       = __( 'Members', 'torro-forms' );
		$this->description = __( 'Allows you to make this form available to logged-in members only.', 'torro-forms' );

		Field_Manager::register_field_type( 'autocompletewithbutton', Autocomplete_With_Button::class );

		$this->register_template_tag_handlers();

		$this->module->manager()->ajax()->register_action( 'invite_member', array( $this, 'ajax_invite_member' ) );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.