WP_Paused_Extensions_Storage::delete_all()
Remove all paused extensions.
Метод класса: WP_Paused_Extensions_Storage{}
Хуков нет.
Возвращает
true|false
.
Использование
$WP_Paused_Extensions_Storage = new WP_Paused_Extensions_Storage(); $WP_Paused_Extensions_Storage->delete_all();
Список изменений
С версии 5.2.0 | Введена. |
Код WP_Paused_Extensions_Storage::delete_all() WP Paused Extensions Storage::delete all WP 6.6.2
public function delete_all() { if ( ! $this->is_api_loaded() ) { return false; } $option_name = $this->get_option_name(); if ( ! $option_name ) { return false; } $paused_extensions = (array) get_option( $option_name, array() ); unset( $paused_extensions[ $this->type ] ); if ( ! $paused_extensions ) { return delete_option( $option_name ); } return update_option( $option_name, $paused_extensions ); }