learndash_quiz_builder_include_orphaned_questions

apply_filters( 'learndash_quiz_builder_include_orphaned_questions',  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 quiz.


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-quiz-builder-metabox.php


Examples #

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

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

Changelog #

Changelog
Version Description
2.5.9 Introduced.