How to deprecate a function used in a plugin?
One of the functions I'm using in my plugin is polluting the global scope with a name that could collide with another function (used in another plugin). So, I guess I should deprecate it. But how should I go about that?
function foo() {
echo 'bar';
}
I'm aware of _deprecate_function()
but would be grateful for an example showing all the steps I should take in order to remove the function from my plugin's core.
Ref: https://developer.wordpress.org/reference/functions/_deprecated_function/
Topic deprecation functions php Wordpress
Category Web