On this page
WP_Paused_Extensions_Storage::get_all(): array
Gets the paused extensions with their errors.
Return
array Associative array of errors keyed by extension slug.
...$0arrayError information returned byerror_get_last().
Source
File: wp-includes/class-wp-paused-extensions-storage.php. View all references
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();
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Paused_Extensions_Storage::is_api_loaded() wp-includes/class-wp-paused-extensions-storage.php | Checks whether the underlying API to store paused extensions is loaded. |
| WP_Paused_Extensions_Storage::get_option_name() wp-includes/class-wp-paused-extensions-storage.php | Get the option name for storing paused extensions. |
| get_option() wp-includes/option.php | Retrieves an option value based on an option name. |
Used By
| Used By | Description |
|---|---|
| WP_Paused_Extensions_Storage::get() wp-includes/class-wp-paused-extensions-storage.php | Gets the error for an extension, if paused. |
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_paused_extensions_storage/get_all