ap_get_terms( boolean|string $taxonomy = false, mixed $_post = null )

Description #

Get terms of a question.

Parameters #

  • $taxonomy
    boolean | string (Optional) Taxonomy slug. Default value: false
  • $_post
    mixed (Optional) Post object, ID or null. Default value: null

Source #

File: includes/qaquery.php

function ap_get_terms( $taxonomy = false, $_post = null ) {
	$_post = ap_get_post( $_post );
	if ( ! empty( $_post->terms ) ) {
		return $_post->terms;
	}
	return false;
}

Leave a Reply

Your email address will not be published.

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

Add your comment