__return_empty_array

Returns an empty array.

Description

(array) __return_empty_array(); 

Useful for returning an empty array to filters easily.

Returns (array)

Empty array.


Usage

  1. if ( !function_exists( '__return_empty_array' ) ) { 
  2. require_once ABSPATH . WPINC . '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = __return_empty_array(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/functions.php  
  1. function __return_empty_array() { 
  2. return array();