WP_Paused_Extensions_Storage::get_all(): array

In this article

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().

Source

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

VersionDescription
5.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.