Returns false.
Description
Useful for returning false to filters easily.
See also
Source
function __return_false() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
return false;
}
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Example
Used as a callback for a filter: