Module::setup_hooks()

Sets up all action and filter hooks for the service.

Description

See also

Source

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

	protected function setup_hooks() {
		parent::setup_hooks();

		$this->filters[] = array(
			'name'     => "{$this->get_prefix()}can_access_form",
			'callback' => array( $this, 'can_access' ),
			'priority' => 10,
			'num_args' => 3,
		);
		$this->actions[] = array(
			'name'     => "{$this->get_prefix()}create_new_submission",
			'callback' => array( $this, 'set_submission_data' ),
			'priority' => 10,
			'num_args' => 3,
		);
		$this->actions[] = array(
			'name'     => 'init',
			'callback' => array( $this, 'register_defaults' ),
			'priority' => 100,
			'num_args' => 1,
		);
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.