src/Exception/WP_Exception.php
public function get_wp_error() {
		return $this->wp_error ? $this->wp_error : new \WP_Error( $this->code, $this->message, $this );
	}
public function get_wp_error() {
		return $this->wp_error ? $this->wp_error : new \WP_Error( $this->code, $this->message, $this );
	}
public function get_wp_error ( ) { return $ this -> wp_error ? $ this -> wp_error : new \ WP_Error ( $ this -> code , $ this -> message , $ this ) ; }
Obtain the exception's `\WP_Error` object.

@return \WP_Error WordPress error.
Obtain the exception s \ WP_Error object .