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 null

Description

Returns null.

Useful for returning null to filters easily.

Usage

<?php 
// This will add a filter on `example_filter` that returns null
add_filter('example_filter''__return_null'); 
?>

Return Values

(null) 
null

Change Log

Since: 3.4

Source File

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

Related