learndash_data_upgrade_query

apply_filters( 'learndash_data_upgrade_query',  array $query_args,  string $data_slug )

Filters data upgrade query arguments.


Description #


Parameters #

$query_args

(array) An array of query arguments.

$data_slug

(string) Data Slug used to identify each instance.


Source #

File: includes/admin/classes-data-upgrades-actions/class-learndash-admin-data-upgrades-course-access-list-convert.php


Examples #

 <?php
/**
 * Example usage for learndash_data_upgrade_query filter.
 */
add_filter(
	'learndash_data_upgrade_query',
	function( $query_args, $data_slug ) {
		// May add any custom logic using $query_args, $data_slug.

		// Always return $query_args.
		return $query_args;
	},
	10,
	2
);