Tags::ap_display_question_metas( array $metas, array $question_id )

Description #

Append meta display.

Parameters #

  • $metas
    array (Required) Display metas.
  • $question_id
    array (Required) Post ID.

Changelog #

VersionDescription
2.0Introduced.

Source #

File: addons/tags/tags.php

	public function ap_display_question_metas( $metas, $question_id ) {
		if ( ap_post_have_terms( $question_id, 'question_tag' ) ) {
			$metas['tags'] = ap_question_tags_html(
				array(
					'label' => '<i class="apicon-tag"></i>',
					'show'  => 1,
				)
			); }

		return $metas;
	}

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