W3cubDocs

/WordPress

WP_Paused_Extensions_Storage::get_all()

Gets the paused extensions with their errors.

Return

(array) Associative array of extension slugs to the error recorded.

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();
	}

Changelog

Version Description
5.2.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_paused_extensions_storage/get_all