Tribe__Rewrite::hooks( $remove = false )

Do not allow people to Hook methods twice by mistake


Source

File: src/Tribe/Rewrite.php

	public function hooks( $remove = false ) {
		if ( false === $this->hook_lock ) {
			// Don't allow people do Double the hooks
			$this->hook_lock = true;

			$this->add_hooks();
		} elseif ( true === $remove ) {
			$this->remove_hooks();
		}
	}