LLMS_Awards_Query::post_types()

Retrieve the post type(s) based on the $type input.


Return Return

(string[])


Top ↑

Source Source

File: includes/class-llms-awards-query.php

	protected function post_types() {

		$type  = $this->get( 'type' );
		$types = array();
		if ( 'any' === $type ) {
			$types = $this->allowed_post_types;
		} elseif ( 'achievement' === $type ) {
			$types = array( 'llms_my_achievement' );
		} elseif ( 'certificate' === $type ) {
			$types = array( 'llms_my_certificate' );
		}

		return $types;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.