WP_Paused_Extensions_Storage::get_all() WordPress Method

The WP_Paused_Extensions_Storage::get_all() method is used to retrieve an array of all paused extensions.

WP_Paused_Extensions_Storage::get_all() #

Gets the paused extensions with their errors.


Return

(array) Associative array of errors keyed by extension slug.

  • '...$0'
    (array) Error information returned by error_get_last().


Top ↑

Source

File: wp-includes/class-wp-paused-extensions-storage.php

	public function get_all() {
		if ( ! $this->is_api_loaded() ) {
			return array();
		}

		$option_name = $this->get_option_name();

		if ( ! $option_name ) {
			return array();
		}

		$paused_extensions = (array) get_option( $option_name, array() );

		return isset( $paused_extensions[ $this->type ] ) ? $paused_extensions[ $this->type ] : array();
	}


Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.