DB::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.php

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

		$this->actions[] = array(
			'name'     => 'admin_init',
			'callback' => array( $this, 'maybe_flush_rewrite_rules' ),
			'priority' => 10,
			'num_args' => 0,
		);
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.