wpseek.com
A WordPress-centric search engine for devs and theme authors



__return_true › WordPress Function

Since3.0.0
Deprecatedn/a
__return_true ( No parameters )
See:
Returns:
  • (true) True.
Defined at:
Codex:

Returns true.

Useful for returning true to filters easily.


Source

function __return_true() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
	return true;
}