WP_Paused_Extensions_Storage::get() WordPress Method

The WP_Paused_Extensions_Storage::get() method is used to get an array of paused extension objects.

WP_Paused_Extensions_Storage::get( string $extension ) #

Gets the error for an extension, if paused.


Parameters

$extension

(string)(Required)Plugin or theme directory name.


Top ↑

Return

(array|null) Error that is stored, or null if the extension is not paused.


Top ↑

Source

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

	public function get( $extension ) {
		if ( ! $this->is_api_loaded() ) {
			return null;
		}

		$paused_extensions = $this->get_all();

		if ( ! isset( $paused_extensions[ $extension ] ) ) {
			return null;
		}

		return $paused_extensions[ $extension ];
	}


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.