WP_Paused_Extensions_Storage::delete_all

Advertisement

Summery Summery

Remove all paused extensions.

Syntax Syntax

WP_Paused_Extensions_Storage::delete_all()

Return Return

(bool)

Source Source

File: wp-includes/class-wp-paused-extensions-storage.php

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

	/**

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?