Module::setup_hooks()

Sets up all action and filter hooks for the service.

Description

This method must be implemented and then be called from the constructor.

See also

Source

File: src/modules/module.php

	protected function setup_hooks() {
		$this->actions = array(
			array(
				'name'     => "{$this->get_prefix()}add_form_meta_content",
				'callback' => array( $this, 'add_meta' ),
				'priority' => 1,
				'num_args' => 1,
			),
			array(
				'name'     => "{$this->get_prefix()}add_settings_content",
				'callback' => array( $this, 'add_settings' ),
				'priority' => 1,
				'num_args' => 1,
			),
			array(
				'name'     => "{$this->get_prefix()}register_assets",
				'callback' => array( $this, 'register_assets' ),
				'priority' => 1,
				'num_args' => 1,
			),
			array(
				'name'     => "{$this->get_prefix()}enqueue_form_builder_scripts",
				'callback' => array( $this, 'enqueue_form_builder_assets' ),
				'priority' => 1,
				'num_args' => 1,
			),
		);
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.