Skip to main content

Filter: gk/gravityview/deprecated-hook-notices/register

Controls whether a deprecated hook notice should be registered.

When WP_DEBUG is off, this defaults to false so that deprecation warnings are not shown to site administrators who are not developers.

Parameters​

NameTypeDescription
$registerboolWhether to register the notice. Default: value of WP_DEBUG.
$hookstringThe deprecated hook or class name.
$replacementstringThe replacement hook name.
$location_keystringThe source file:line where the callback is defined.

Since​

  • 2.55.0
  • 3.6.0: Also fires for deprecated classes, with the class name in $hook.

Source​

Defined in src/Deprecation/DeprecatedHookNotices.php at line 413