ap_question_have_tags( false|int $question_id = false )
Description #
Check if question have tags.
Parameters #
- $question_idfalse | int (Optional) Question id. Default value: false
Source #
File: includes/taxo.php
function ap_question_have_tags( $question_id = false ) {
	if ( ! $question_id ) {
		$question_id = get_the_ID(); }
	$tags = wp_get_post_terms( $question_id, 'question_tag' );
	if ( ! empty( $tags ) ) {
		return true; }
	return false;
}
Expand full source code Collapse full source code View on GitHub: includes/taxo.php:416
  Add your comment