WP_Paused_Extensions_Storage::get

Advertisement

Summery Summery

Gets the error for an extension, if paused.

Syntax Syntax

WP_Paused_Extensions_Storage::get( string $extension )

Parameters Parameters

$extension

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

Return Return

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

Source Source

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

			return null;
		}

		$paused_extensions = $this->get_all();

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

		return $paused_extensions[ $extension ];
	}

	/**

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?