Rest_Api::hook()

Constructor.


Return

(void)


Top ↑

Source

File: src/Events/Admin/Notice/Rest_Api.php

	public function hook(): void {
		tribe_notice(
			$this->slug,
			[ $this, 'notice' ],
			[
				'type'               => 'warning',
				'dismiss'            => 1,
				'wrap'               => 'p',
				'recurring'          => true,
				'recurring_interval' => 'P7D',
			],
			[ $this, 'should_display' ]
		);
	}

Top ↑

Changelog

Changelog
Version Description
6.5.0 Introduced.