ap_answers_link( boolean|integer $question_id = false )

Description #

Return link to answers.

Parameters #

  • $question_id
    boolean | integer (Optional) Question ID. Default value: false

Source #

File: includes/functions.php

function ap_answers_link( $question_id = false ) {
	if ( ! $question_id ) {
		return get_permalink() . '#answers';
	}
	return get_permalink( $question_id ) . '#answers';
}

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