Function: _wp_preview_terms_filter

_wp_preview_terms_filter( array $terms, integer $post_id, string $taxonomy )

Filters terms lookup to set the post format.

Shortcut: wptf

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

Parameters

Name Type(s) Default Value Description
$terms array
$post_id integer
$taxonomy string

Returns

array

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.