_deprecated_function ( $function_name, $version, $replacement = '' )

  • (string) function_name The function that was called.
  • (string) version The version of WordPress that deprecated the function.
  • (string) replacement Optional. The function that should have been called. Default empty string.
Defined at:
Change Log:
  • 5: .
  • 5: .


Marks a function as deprecated and inform when it has been used.There is a {@see 'deprecated_function_run'} hook that will be called that can be used to get the backtrace up to what file and function called the deprecated function. The current behavior is to trigger a user error if `WP_DEBUG` is true. This function is to be used in every function that is deprecated.

Related Functions

_deprecated_file, rest_handle_deprecated_function, _deprecated_argument, _deprecated_hook, _deprecated_class

Top Google Results

User discussions

wpseek mobile