Description
Apply a filter to the name of a term
Usage
add_filter(
'wp_data_sync_term_name'
,
'my_term_name'
, 10, 3
);
Parameters
$term_name
string
The name of the term
$taxonomy
string
The name of the taxonomy
$parent_id
int
The term ID of the parent term
Code Example
add_filter(
'wp_data_sync_term_name'
,
'my_term_name'
, 10, 3
);
function
my_term_name
(
$term_name
,
$taxonomy
,
$parent_id
) {
//Do cool stuff here!!
return
$term_name
;
}
Contact us if you need a better code example for this hook. We are happy to write one for you.