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

LifterLMS LifterLMS

Code Reference

  • Home
  • 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

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

Description #Description


Return #Return

(array)


Top ↑

Source #Source

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

	protected function get_default_args() {

		$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 ↑

Changelog #Changelog

Changelog
Version Description
3.15.0 Introduced.

Top ↑

Related #Related

Top ↑

Uses #Uses

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

Retrieve default arguments for a the query


Top ↑

User Contributed Notes #User Contributed Notes

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

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