mycred_ranking_sql

Description

This filter allows you to adjust the MySQL query string used for generating a leaderboard through the mycred_leaderboard shortcode.

Make sure you use $wpdb->prepare(); to properly escape any custom SQL code you might add using this filter.

Available since version 1.2

Parameters

Param Type Required Description
$query string Yes

The SQL query string.

$atts array No

Associative array of the shortcode attributes currently being used. Will include custom shortcode attributes that might be used.

Used By

Package Prio. Description
Not used by any built-in package.

Examples

No example found.