apply_filters( 'learndash_lesson_course_post_options', array $options, array $settings )
Filters query arguments for getting course lesson.
Description #
Parameters #
- $options
-
(array) Query Arguments.
- $settings
-
(array) Lesson settings
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_lesson_course_post_options filter. */ add_filter( 'learndash_lesson_course_post_options', function( $options, $settings ) { // May add any custom logic using $options, $settings. // Always return $options. return $options; }, 10, 2 );
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |