WP_Error::remove( string|int $code )

Removes the specified error.


Description Description

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


Top ↑

Parameters Parameters

$code

(string|int) (Required) Error code.


Top ↑

Source Source

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.