__return_empty_array() – Returns an empty array.

You appear to be a bot. Output may be restricted

Description

Returns an empty array.

Useful for returning an empty array to filters easily.

Usage

$array = __return_empty_array();

Parameters

Returns

array Empty array.

Source

File name: wordpress/wp-includes/functions.php
Lines:

1 to 3 of 3
function __return_empty_array() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
  return array();
}
 

 View on GitHub View on Trac