Codex

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

Template:Deprecated Action

Use {{Deprecated_Action}} to show that a specific action hook is deprecated.

It will look like this:


This action hook has been deprecated. That means it has been replaced by a new action hook or is no longer supported, and may be removed from future versions. All code that uses this action should be converted to use its replacement if one exists. Use any of these action hooks instead.

If you want to specify WHICH action hook to use instead, use the new_action parameter: {{Deprecated_Action|new_action=another_action}}


This action hook has been deprecated. That means it has been replaced by a new action hook or is no longer supported, and may be removed from future versions. All code that uses this action should be converted to use its replacement if one exists. Use another_action instead.

If you want to specify the version in which the hook was deprecated, you can do it like this: {{Deprecated_Action|new_action=another_action|version=2.3}}


This action hook has been deprecated since Version 2.3. That means it has been replaced by a new action hook or is no longer supported, and may be removed from future versions. All code that uses this action should be converted to use its replacement if one exists. Use another_action instead.