Module::register_defaults()

Registers the default evaluators.

Description

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

See also

Source

File: src/modules/evaluators/module.php

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

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

Changelog

Changelog
Version Description
1.0.0 Introduced.