apply_filters( 'course_builder_selector_new_step_post_args' )
We add this to force the course_id to zero for the selectors as we don’t want the the ‘view’ URL to reflect the nested course.
Description #
Source #
File: includes/admin/classes-builders/class-learndash-admin-course-builder-metabox.php
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for course_builder_selector_new_step_post_args filter. */ add_filter( 'course_builder_selector_new_step_post_args', function( $post_args ) { // May add any custom logic using $post_args. // Always return $post_args. return $post_args; } );