Returns null.
Description
Useful for returning null to filters easily.
Source
function __return_null() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
return null;
}
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
Add a filter on `example_filter` that returns null.