Module::setup_hooks()

Sets up all action and filter hooks for the service.

Description

See also

Source

File: src/modules/actions/module.php

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

		$this->actions[] = array(
			'name'     => "{$this->get_prefix()}complete_submission",
			'callback' => array( $this, 'handle' ),
			'priority' => 10,
			'num_args' => 2,
		);
		$this->actions[] = array(
			'name'     => 'init',
			'callback' => array( $this, 'register_defaults' ),
			'priority' => 100,
			'num_args' => 0,
		);
		$this->actions[] = array(
			'name'     => "{$this->get_prefix()}save_form",
			'callback' => array( $this, 'save_api_mappings' ),
			'priority' => 10,
			'num_args' => 2,
		);
		$this->actions[] = array(
			'name'     => 'init',
			'callback' => array( $this, 'register_api_config_data_hook' ),
			'priority' => 200,
			'num_args' => 0,
		);
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.