WP HOOKS
akcjaod 2.8.0

set_object_terms

Args 6Plik wp-includes/taxonomy.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires after an object's terms have been set.

Parametry

ParametrTypOpis
$object_idintObject ID.
$termsarrayAn array of object term IDs or slugs.
$tt_idsarrayAn array of term taxonomy IDs.
$taxonomystringTaxonomy slug.
$appendboolWhether to append new terms to the old terms.
$old_tt_idsarrayOld array of term taxonomy IDs.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'set_object_terms', 'twoja_funkcja', 10, 6 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
	// Twój kod
}

Popularne w tej kategorii