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

(string) (Required) The function that was called.

$message

(string) (Required) A message regarding the change.

$version

(string) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.