_wp_preview_terms_filter

Advertisement

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

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

Parameters Parameters

$terms

(array) (Required)

$post_id

(int) (Required)

$taxonomy

(string) (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

Changelog
Version Description
3.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.