Categories::ap_display_question_metas( array $metas, integer $question_id )

Description #

Append meta display.

Parameters #

  • $metas
    array (Required) Display meta items.
  • $question_id
    integer (Required) Question id.

Changelog #

VersionDescription
1.0Introduced.

Source #

File: addons/categories/categories.php

	public function ap_display_question_metas( $metas, $question_id ) {
		if ( ap_post_have_terms( $question_id ) ) {
			$metas['categories'] = ap_question_categories_html( array( 'label' => '<i class="apicon-category"></i>' ) );
		}

		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