learndash_course_builder_include_orphaned_steps

apply_filters( 'learndash_course_builder_include_orphaned_steps',  boolean $include_orphaned_steps,  array $args )

Filters whether to include orphaned steps or not. Orphaned steps are the steps that are not attached to a course.


Description #


Parameters #

$include_orphaned_steps

(boolean) Whether to include orphaned steps.

$args

(array) An array of query arguments.


Source #

File: includes/admin/classes-builders/class-learndash-admin-course-builder-metabox.php


Examples #

 <?php
/**
 * Example usage for learndash_course_builder_include_orphaned_steps filter.
 */
add_filter(
	'learndash_course_builder_include_orphaned_steps',
	function( $include_orphaned_steps = true, $args = array() ) {
		$include_orphaned_steps = false;

		// Always return $include_orphaned
		return $include_orphaned_steps;
	},
	30,
	2
);
 

Changelog #

Changelog
Version Description
2.5.9 Introduced.