AnsPress_Profile_Hooks::answer_page()

Description #

Display user questions page.

Source #

File: addons/free/profile.php

	public static function answer_page() {
		global $answers;

		$user_id = ap_current_user_id();

		$args['ap_current_user_ignore'] = true;
		$args['ignore_selected_answer'] = true;
		$args['showposts'] = 10;
		$args['author'] = $user_id;

		/*if ( false !== $paged ) {
			$args['paged'] = $paged;
		}*/

		/**
		 * Filter authors question list args
		 *
		 * @var array
		 */
		$args = apply_filters( 'ap_user_answers_args', $args );
		anspress()->answers = $answers = new Answers_Query( $args );

		ap_get_template_part( 'addons/user/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