rest_handle_deprecated_argument

Advertisement

Summery Summery

Handles _deprecated_argument() errors.

Syntax Syntax

rest_handle_deprecated_argument( string $function, string $message, string $version )

Parameters Parameters

$function

(Required) The function that was called.

$message

(Required) A message regarding the change.

$version

(Required) Version.

Source Source

File: wp-includes/rest-api.php

		return new WP_REST_Response(
			$response->get_data(),
			$response->get_status(),
			$response->get_headers()
		);
	}

	return new WP_REST_Response( $response );
}

/**
 * Handles _deprecated_function() errors.
 *
 * @since 4.4.0

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply