__return_empty_array() WordPress Function
This function returns an empty array.
__return_empty_array() #
Returns an empty array.
Contents
Description
Useful for returning an empty array to filters easily.
Return
(array) Empty array.
Source
File: wp-includes/functions.php
function __return_empty_array() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore return array(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |