Module::register_defaults()

Registers the default protectors.

Description

The function also executes a hook that should be used by other developers to register their own protectors.

See also

Source

File: src/modules/protectors/module.php

	protected function register_defaults() {
		foreach ( $this->default_submodules as $slug => $class_name ) {
			$this->register( $slug, $class_name );
		}

		/**
		 * Fires when the default protectors have been registered.
		 *
		 * This action should be used to register custom protectors.
		 *
		 * @since 1.0.0
		 *
		 * @param Module $protectors Action manager instance.
		 */
		do_action( "{$this->get_prefix()}register_protectors", $this );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.