LLMS_Admin_Post_Table_Lessons::add_filters( string $post_type, string $which )
Add filters to the top of the post table
Parameters Parameters
- $post_type
-
(string) (Required) Post Type of the current posts table.
- $which
-
(string) (Required) Positioning of the filters [top|bottom].
Return Return
(void)
Source Source
File: includes/admin/post-types/post-tables/class.llms.admin.post.table.lessons.php
public function add_filters( $post_type, $which ) { // Only for the correct post type & position. if ( 'lesson' !== $post_type || 'top' !== $which ) { return; } $selected = isset( $_GET['llms_filter_course_id'] ) ? absint( $_GET['llms_filter_course_id'] ) : false; echo LLMS_Admin_Post_Tables::get_post_type_filter_html( 'llms_filter_course_id', 'course', $selected ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.12.0 | Introduced. |