__return_empty_string()
Returns an empty string.
Description Description
Useful for returning an empty string to filters easily.
See also See also
Return Return
(string) Empty string.
More Information More Information
Usage:
// This will add a filter on `example_filter` that returns an empty string add_filter( 'example_filter', '__return_empty_string' );
Source Source
File: wp-includes/functions.php
function __return_empty_string() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore return ''; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |