Module::setup_hooks()

Sets up all action and filter hooks for the service.

Description

See also

Source

File: src/modules/form-settings/module.php

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

		$prefix = $this->get_prefix();

		$this->filters[] = array(
			'name'     => "{$prefix}form_container_show_title",
			'callback' => array( $this, 'filter_show_container_title' ),
			'priority' => 10,
			'num_args' => 2,
		);
		$this->filters[] = array(
			'name'     => "{$prefix}form_button_prev_step_label",
			'callback' => array( $this, 'filter_previous_button_label' ),
			'priority' => 10,
			'num_args' => 2,
		);
		$this->filters[] = array(
			'name'     => "{$prefix}form_button_next_step_label",
			'callback' => array( $this, 'filter_next_button_label' ),
			'priority' => 10,
			'num_args' => 2,
		);
		$this->filters[] = array(
			'name'     => "{$prefix}form_button_submit_label",
			'callback' => array( $this, 'filter_submit_button_label' ),
			'priority' => 10,
			'num_args' => 2,
		);
		$this->filters[] = array(
			'name'     => "{$prefix}form_submission_success_message",
			'callback' => array( $this, 'filter_success_message' ),
			'priority' => 10,
			'num_args' => 2,
		);
		$this->filters[] = array(
			'name'     => "{$prefix}allow_get_params",
			'callback' => array( $this, 'filter_allow_get_params' ),
			'priority' => 10,
			'num_args' => 3,
		);
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.