__return_zero(): int
Returns 0.
Description
Useful for returning 0 to filters easily.
Return
int 0.
Source
File: wp-includes/functions.php
.
View all references
function __return_zero() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
return 0;
}
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Add a filter on `example_filter` that returns 0.