LD_ACHIEVEMENTS_AWARD::get_achievements()


Source Source

File: src/integrations/learndash/actions/ld-achievements-award.php

	protected function get_achievements() {

		$args = array(
			'post_type'      => 'ld-achievement',
			'posts_per_page' => 99,
			'orderby'        => 'title',
			'order'          => 'ASC',
			'post_status'    => 'publish',
		);

		$achievements = Automator()->helpers->recipe->options->wp_query( $args, '', esc_attr__( 'Any course', 'uncanny-automator' ) );

		return $achievements;
	}