__return_false() WordPress Function
The __return_false() function is a built-in function in WordPress that returns the boolean value false. This function is commonly used in conditional tags to return false if a certain condition is not met.
__return_false() #
Returns false.
Description
Useful for returning false to filters easily.
See also
Return
(false) False.
Source
File: wp-includes/functions.php
function __return_false() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
return false;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |