__return_empty_array() WordPress Function

This function returns an empty array.

__return_empty_array() #

Returns an empty array.


Description

Useful for returning an empty array to filters easily.


Top ↑

Return

(array) Empty array.


Top ↑

Source

File: wp-includes/functions.php

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

Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More