WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/ return empty array

Contents

Description

Returns an empty array.

Useful for returning an empty string to filters easily.

Usage

<?php 
// This will add a filter on `example_filter` that returns an empty array()
add_filter('example_filter''__return_empty_array'); 
?>

Return Values

(array) 
array()

Change Log

Since: 3.0

Source File

__return_empty_array() is located in wp-includes/functions.php

Related