__return_null() WordPress Function
The return_null() function is a WordPress function that returns a null value. This function is useful for returning a value from a function when you don't want to return anything.
__return_null() #
Returns null.
Contents
Description
Useful for returning null to filters easily.
Return
(null) Null value.
Source
File: wp-includes/functions.php
function __return_null() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore return null; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |