WP HOOKS
filtrreferencjaod 3.1.0

comments_clauses

Args 1Plik wp-includes/class-wp-comment-query.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the comment query clauses.

Parametry

ParametrTypOpis
$clausesstring[]{ Associative array of the clauses for the query. @type string $fields The SELECT clause of the query. @type string $join The JOIN clause of the query. @type string $where The WHERE clause of the query. @type string $orderby The ORDER BY clause of the query. @type string $limits The LIMIT clause of the query. @type string $groupby The GROUP BY clause of the query. }
$query\WP_Comment_QueryCurrent instance of WP_Comment_Query (passed by reference).

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'comments_clauses', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii