AnsPress_Tag::ap_question_info( object $post )

Description #

Hook tags after post.

Parameters #

  • $post
    object (Required) Post object.

Changelog #

VersionDescription
1.0Introduced.

Source #

File: addons/free/tag.php

	public static function ap_question_info( $post ) {

		if ( ap_question_have_tags() ) {
			echo '<div class="widget"><span class="ap-widget-title">' . esc_attr__( 'Tags', 'anspress-question-answer' ) . '</span>';
			echo '<div class="ap-post-tags clearfix">' . ap_question_tags_html( [ 'list' => true, 'label' => '' ] ) . '</div></div>'; // WPCS: xss okay.
		}
	}

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