_edd_deprected_argument( string $argument, string $function, string $version, string $replacement = null, array $backtrace = null )

Marks an argument in a function deprecated and informs when it’s been used


Description Description

There is a hook edd_deprecated_argument_run 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 has an argument being deprecated.


Parameters Parameters

$argument

(Required) The arguemnt that is being deprecated

$function

(Required) The function that was called

$version

(Required) The version of WordPress that deprecated the function

$replacement

(Optional) The function that should have been called

Default value: null

$backtrace

(Optional) Contains stack backtrace of deprecated function

Default value: null


Top ↑

Source Source

File: includes/misc-functions.php


			

Top ↑

User Contributed Notes User Contributed Notes

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