-
Notifications
You must be signed in to change notification settings - Fork 4
wpt_tag_default
github-actions[bot] edited this page Jun 14, 2026
·
1 revision
Change the default tag character. Default '#'.
add_filter(
'wpt_tag_default',
function(
string $char,
int $t_id
) {
// Your code here.
return $char;
},
10,
2
);-
string$charCharacter used to convert tags into hashtags. -
int$t_idTerm ID.
string
apply_filters( 'wpt_tag_default', '#', $t_id )