Constructor.
Description
See also
Parameters
- $prefix
-
(string) (Required) The instance prefix.
- $services
-
(array) (Required) Array of service instances.
- 'options'
(Options) The Option API instance. - 'meta'
(Meta) The Metadata API instance. - 'assets'
(Assets) The Assets API instance. - 'ajax'
(AJAX) The AJAX API instance. - 'forms'
(Form_Manager) The form manager instance. - 'template_tag_handlers'
(Template_Tag_Handler_Manager) The template tag handler manager instance. - 'error_handler'
(Error_Handler) The error handler instance.
- 'options'
Source
File: src/modules/module-manager.php
public function __construct( $prefix, $services ) { $this->set_prefix( $prefix ); $this->set_services( $services ); $this->default_modules = array( 'access_controls' => Access_Controls_Module::class, 'actions' => Actions_Module::class, 'protectors' => Protectors_Module::class, 'evaluators' => Evaluators_Module::class, 'form_settings' => Form_Settings_Module::class, ); foreach ( $this->default_modules as $slug => $module_class_name ) { $this->register( $slug, $module_class_name ); } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |