Module::setup_hooks()

Sets up all action and filter hooks for the service.

Description

See also

Source

File: src/modules/evaluators/module.php

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

		$this->actions[] = array(
			'name'     => "{$this->get_prefix()}complete_submission",
			'callback' => array( $this, 'evaluate' ),
			'priority' => 10,
			'num_args' => 2,
		);
		$this->actions[] = array(
			'name'     => "{$this->get_prefix()}before_submissions_list",
			'callback' => array( $this, 'maybe_show_evaluation_results' ),
			'priority' => 10,
			'num_args' => 1,
		);
		$this->actions[] = array(
			'name'     => "{$this->get_prefix()}list_submissions_enqueue_assets",
			'callback' => array( $this, 'maybe_enqueue_submission_results_assets' ),
			'priority' => 1,
			'num_args' => 1,
		);
		$this->actions[] = array(
			'name'     => 'init',
			'callback' => array( $this, 'register_defaults' ),
			'priority' => 100,
			'num_args' => 1,
		);
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.