WP_Paused_Extensions_Storage::set

SummerySummery

Records an extension error.

Syntax

WP_Paused_Extensions_Storage::set( string $extension, array $error )

DescriptionDescription

Only one error is stored per extension, with subsequent errors for the same extension overriding the previously stored error.

ParametersParameters

$extension

(string) (Required) Plugin or theme directory name.

$error

(array) (Required) Error that was triggered.

  • 'type'
    (string) The error type.
  • 'file'
    (string) The name of the file in which the error occurred.
  • 'line'
    (string) The line number in which the error occurred.
  • 'message'
    (string) The error message.

ReturnReturn

(bool) True on success, false on failure.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
5.2.0 Introduced.
Scroll to Top