Filters the custom data to log alongside a query. Caution should be used when modifying any of this data, it is recommended that any additional information you need to store about a query be added as a new associative array element.
$query_data, $query, $query_time, $query_callstack, $query_start
Sortie :
@param array $query_data Custom query data. @param string $query The query's SQL. @param float $query_time Total time spent on the query, in seconds. @param string $query_callstack Comma-separated list of the calling functions. @param float $query_start Unix timestamp of the time at the start of the query.
// Modifier la valeur avec le filtre 'log_query_custom_data'
add_filter('log_query_custom_data', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($query_data) {
// Modifier la valeur
return $query_data;
}
Chargement des actualités...