sfw_terms_exist

Description

Checks if any terms of given taxonomy are tied to $post

Since: 1.0.0

Code

<?php function sfw_terms_exist( $taxonomy, $post ){ 
	 … 
 } ?>

Parameter

$taxonomy
(string) A valid
$post
(int|WP_Post) A post or post id

Return

(bool) Returns true if any term is associated with post

File

core/includes/functions-wp-helpers.php