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

Add filters to the top of the post table


Description Description


Parameters Parameters

$post_type

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

$which

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


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

	}

Top ↑

Changelog 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.