WP_Paused_Extensions_Storage::get_all() public WP 5.2.0
Gets the paused extensions with their errors.
{} Это метод класса: WP_Paused_Extensions_Storage{}
Хуков нет.
Возвращает
Массив. Associative array of extension slugs to the error recorded.
Использование
$WP_Paused_Extensions_Storage = new WP_Paused_Extensions_Storage(); $WP_Paused_Extensions_Storage->get_all();
Список изменений
С версии 5.2.0 | Введена. |
Код WP_Paused_Extensions_Storage::get_all() WP Paused Extensions Storage::get all WP 5.6.2
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();
}