Private Access Private Access
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Summery Summery
Filters terms lookup to set the post format.
Syntax Syntax
Parameters Parameters
- $terms
-
(Required)
- $post_id
-
(Required)
- $taxonomy
-
(Required)
Return Return
(array)
Source Source
File: wp-includes/revision.php
add_filter( 'the_preview', '_set_preview' ); } } /** * Filters terms lookup to set the post format. * * @since 3.6.0 * @access private * * @param array $terms * @param int $post_id * @param string $taxonomy * @return array */ function _wp_preview_terms_filter( $terms, $post_id, $taxonomy ) { $post = get_post(); if ( ! $post ) { return $terms; }
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |