Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Template:Deprecated

Use {{Deprecated}} to show that a specific function is deprecated.

It will look like this:


This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use any of these functions instead.

If you want to specify WHICH function to use this instead: {{Deprecated|new_function=get_archives}}


This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use get_archives instead.

If you want to specify the version in which the function was deprecated, you can do it like this: {{Deprecated|new_function=get_archives|version=3.0}}


This function has been deprecated since Version 3.0. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use get_archives instead.