LLMS_Admin_Post_Table_Lessons::add_columns( array $columns )

Add Custom lesson Columns


Parameters Parameters

$columns

(array) (Required) Array of default columns.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/admin/post-types/post-tables/class.llms.admin.post.table.lessons.php

	 * @param WP_Post $post    Lesson's WP_Post object.
	 * @return array
	 */
	public function add_links( $actions, $post ) {

		if ( 'lesson' === $post->post_type && current_user_can( 'edit_lesson', $post->ID ) ) {

			$lesson = llms_get_post( $post->ID );
			if ( ! $lesson ) {
				return $actions;
			}

			$course = $lesson->get( 'parent_course' );
			$url    = add_query_arg(

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.3
3.12.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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