LLMS_Admin_Post_Table_Lessons::add_filters( string $post_type, string $which )

Add filters to the top of the post table

Parameters Parameters


(string) (Required) Post Type of the current posts table.


(string) (Required) Positioning of the filters [top|bottom].

Top ↑

Return Return


Top ↑

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 ) {

		$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 );


Top ↑

Changelog Changelog

Version Description
3.12.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.