WP_Error::remove

Advertisement

Summery Summery

Removes the specified error.

Syntax Syntax

WP_Error::remove( string|int $code )

Description Description

This function removes all error messages associated with the specified error code, along with any error data for that code.

Parameters Parameters

$code

(string|int) (Required) Error code.

Source Source

File: wp-includes/class-wp-error.php

	public function remove( $code ) {
		unset( $this->errors[ $code ] );
		unset( $this->error_data[ $code ] );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.1.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?