APIAPI_Config::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/apiapi-config.php

	protected function setup_hooks() {
		$this->actions = array(
			array(
				'name'     => 'wp_loaded',
				'callback' => array( $this, 'trigger_setup_config' ),
				'priority' => 10,
				'num_args' => 0,
			),
			array(
				'name'     => "admin_action_{$this->prefix}apiapi_callback",
				'callback' => array( $this, 'trigger_listen_for_callback' ),
				'priority' => 10,
				'num_args' => 0,
			),
		);
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.