• LifterLMS
  • Knowledge Base
  • Academy
  • Blog
  • Podcast
  • Contributors
  • My Account

LifterLMS LifterLMS

  • Code Reference
  • REST API
  • LLMS-CLI
  • Changelog Subscribe

Code Reference

Skip to content
Filter by type:
Search
Browse: Home / Code Reference / Classes / LLMS_Query_User_Postmeta / LLMS_Query_User_Postmeta::get_default_args()

LLMS_Query_User_Postmeta::get_default_args()

Retrieve default arguments for a student query

Contents

  • Return
  • Source
  • Related
    • Uses
  • Changelog
  • User Contributed Notes

Return #Return

(array)


Top ↑

Source #Source

File: includes/class.llms.query.user.postmeta.php

		$args = array(
			'include_post_children' => true,
			'query'                 => array(),
			'query_compare'         => 'OR',
			'post_id'               => array(),
			'sort'                  => array(
				'updated_date' => 'DESC',
				'meta_id'      => 'ASC',
			),
			'types'                 => array(),
			'user_id'               => array(),
		);

		$args = wp_parse_args( $args, parent::get_default_args() );

		return apply_filters( $this->get_filter( 'default_args' ), $args );

	}

Expand full source code Collapse full source code View on GitHub


Top ↑

Related #Related

Uses #Uses

Uses
Uses Description
includes/class.llms.query.quiz.attempt.php: {$this->get_filter(‘default_args’)}

Query LifterLMS Students for a given course / membership

includes/abstracts/abstract.llms.database.query.php: LLMS_Database_Query::get_default_args()

Retrieve default arguments for the query.


Top ↑

Changelog #Changelog

Changelog
Version Description
3.15.0 Introduced.

Top ↑

User Contributed Notes #User Contributed Notes

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

© 2014 - 2025 LifterLMS · Privacy Policy · Terms and Conditions

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.