Module_Manager::get_all_active()

Returns all active modules.

Description

See also

Return

(array) Associative array of <code>$slug => $module_instance</code> pairs.

Source

File: src/modules/module-manager.php

	public function get_all_active() {
		$options = $this->options()->get( 'general_settings', array() );
		if ( isset( $options['modules'] ) && is_array( $options['modules'] ) ) {
			return array_intersect_key( $this->modules, array_flip( $options['modules'] ) );
		}

		return $this->modules;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.