filtrreferencjaod 4.6.0
networks_clauses
Opis — z kodu źródłowego
Filters the network query clauses.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$clauses | string[] | { 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_Network_Query | Current instance of WP_Network_Query (passed by reference). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'networks_clauses', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'networks_clauses', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii