WordPress at a glance
function is not described

WP_Paused_Extensions_Storage::delete_all() public WP 5.2.0

Remove all paused extensions.

{} It's a method of the class: WP_Paused_Extensions_Storage{}

No Hooks.

Return

true|false. Null. Nothing.

Usage

$WP_Paused_Extensions_Storage = new WP_Paused_Extensions_Storage();
$WP_Paused_Extensions_Storage->delete_all();

Changelog

Since 5.2.0 Introduced.

Code of WP_Paused_Extensions_Storage::delete_all() WP 5.7

<?php
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 );
}