AnsPress_Ajax::load_filter_order_by()

Description #

Ajax callback for loading order by filter.

Source #

File: includes/ajax-hooks.php

	public static function load_filter_order_by() {
		$filter = ap_sanitize_unslash( 'filter', 'r' );
		check_ajax_referer( 'filter_' . $filter, '__nonce' );

		ap_ajax_json(
			array(
				'success'  => true,
				'multiple' => false,
				'items'    => ap_get_questions_orderby(),
			)
		);
	}

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