Skip to content

wpt_hash_source

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

Change the taxonomy used by default to generate post tags. Array of terms attached to post.

Auto-generated Example

add_filter(
   'wpt_hash_source',
    function(
        array $tags,
        int $post_ID
    ) {
        // Your code here.
        return $tags;
    },
    10,
    2
);

Parameters

  • array $tags Array of post terms.
  • int $post_ID Post ID.

Returns

array

Files

apply_filters( 'wpt_hash_source', $tags, $post_ID )

← All Hooks

Clone this wiki locally