rest_handle_deprecated_function( string $function_name, string $replacement, string $version )

In this article

Handles _deprecated_function() errors.

Parameters

$function_namestringrequired
The function that was called.
$replacementstringrequired
The function that should have been called.
$versionstringrequired
Version.

Source


/**
 * Handles _deprecated_function() errors.
 *
 * @since 4.4.0
 *
 * @param string $function_name The function that was called.
 * @param string $replacement   The function that should have been called.
 * @param string $version       Version.
 */
function rest_handle_deprecated_function( $function_name, $replacement, $version ) {
	if ( ! WP_DEBUG || headers_sent() ) {
		return;
	}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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