LLMS_Awards_Query::post_types()
Retrieve the post type(s) based on the $type input.
Return Return
(string[])
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;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |