Element_Type_Manager::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/db-objects/elements/element-types/element-type-manager.php

	protected function setup_hooks() {
		$this->actions = array(
			array(
				'name'     => 'init',
				'callback' => array( $this, 'register_defaults' ),
				'priority' => 1,
				'num_args' => 0,
			),
			array(
				'name'     => "{$this->get_prefix()}enqueue_form_builder_scripts",
				'callback' => array( $this, 'enqueue_admin_scripts' ),
				'priority' => 1,
				'num_args' => 0,
			),
		);
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.