deprecated_hook_run WordPress Action Hook

The deprecated_hook_run hook is triggered when a deprecated hook is called. It allows plugins to take action on calls to deprecated hooks, or to log the calls for debugging purposes.

do_action( 'deprecated_hook_run', string $hook, string $replacement, string $version, string $message ) #

Fires when a deprecated hook is called.


Parameters

$hook

(string)The hook that was called.

$replacement

(string)The hook that should be used as a replacement.

$version

(string)The version of WordPress that deprecated the argument used.

$message

(string)A message regarding the change.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More