gppa_allow_unknown_sql_operators
Description
Filter whether unrecognized operators are allowed into the SQL format when building where clauses. Operators become part of the SQL statement itself, so prepare() can only quote the value around them, never the operator. By default, operators that do not map to a known SQL operator are rejected so an unexpected operator can never restructure the query.
Usage
Applied globally
add_filter( 'gppa_allow_unknown_sql_operators', 'my_custom_function' );Parameters
$allow_unknown_operators
bool
Whether to allow unrecognized operators through.
$operator
mixed
The unrecognized operator.
$object_type
GPPA_Object_Type
Current object type.
Since
2.1.85Hook added.