LLMS_Admin_Post_Table_Lessons::add_columns( array $columns )
Add Custom lesson Columns
Parameters Parameters
- $columns
-
(array) (Required) Array of default columns.
Return Return
(array)
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(
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.2.3 | |
3.12.0 | Introduced. |