Skip to content

wpt_tag_default

github-actions[bot] edited this page Jun 14, 2026 · 1 revision

Change the default tag character. Default '#'.

Auto-generated Example

add_filter(
   'wpt_tag_default',
    function(
        string $char,
        int $t_id
    ) {
        // Your code here.
        return $char;
    },
    10,
    2
);

Parameters

  • string $char Character used to convert tags into hashtags.
  • int $t_id Term ID.

Returns

string

Files

apply_filters( 'wpt_tag_default', '#', $t_id )

← All Hooks

Clone this wiki locally