wpsl_sql_placeholder_values

  1. Description
  2. Parameters
  3. Usage
  4. Changelog
  5. Source File
  6. Related

Description

This filter allows you to add extra placeholder values that you can use in the SQL query.

The default placeholder values:

Parameters

$placeholder_values - (array) The current placeholder values.

Usage

Add a custom placeholder value:

If you add extra placeholder values, then make sure you also include an equal amount of placeholders in the SQL query with the wpsl_sql filter.

Changelog

Since 2.0

Source File

This filter is located in /frontend/class-frontend.php.

Placement

The code needs to be placed in the functions.php file inside your active theme folder.