WordPress.org

Codex

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

Function Reference/ return zero

Description

Returns 0.

Useful for returning 0 to filters easily.

Usage

<?php 
// This will add a filter on `example_filter` that returns 0
add_filter'example_filter''__return_zero' ); 
?>

Return Values

(integer) 
0

Change Log

Since: 3.0

Source File

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

Related