__return_zero() – Returns 0.

You appear to be a bot. Output may be restricted

Description

Returns 0.

Useful for returning 0 to filters easily.

Usage

$int = __return_zero();

Parameters

Returns

int

  1. Source

    File name: wordpress/wp-includes/functions.php
    Lines:

    1 to 3 of 3
    function __return_zero() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
      return 0;
    }
     

     View on GitHub View on Trac