WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/ return true

Contents

Description

Returns true.

Useful for returning true to filters easily.

Usage

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

Return Values

(boolean) 
true

Change Log

Since: 3.0

Source File

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

Related