A WordPress-centric search engine for devs and theme authors



__return_empty_array ›

Since3.0.0
Deprecatedn/a
__return_empty_array ( No parameters )
Returns:
  • (array) Empty array.
Defined at:
Codex:

Returns an empty array.

Useful for returning an empty array to filters easily.



Source

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