WP_Paused_Extensions_Storage::get_all()
Gets the paused extensions with their errors.
Method of the class: WP_Paused_Extensions_Storage{}
No Hooks.
Return
Array
. Associative array of errors keyed by extension slug.
Usage
$WP_Paused_Extensions_Storage = new WP_Paused_Extensions_Storage(); $WP_Paused_Extensions_Storage->get_all();
Changelog
Since 5.2.0 | Introduced. |
WP_Paused_Extensions_Storage::get_all() WP Paused Extensions Storage::get all code WP 6.7.1
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(); }