apply_filters( 'learndash_show_course_builder_row_actions', boolean $show_row_actions, WP_Post|null $course_post )
Filters whether to show course builder row actions or not.
Description #
Parameters #
- $show_row_actions
-
(boolean) Whether to show row actions.
- $course_post
-
(WP_Post|null) Course post object.
Source #
File: includes/admin/classes-posts-listings/class-learndash-admin-courses-listing.php
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_show_course_builder_row_actions filter. */ add_filter( 'learndash_show_course_builder_row_actions', function( $show_row_actions, $course_post ) { // May add any custom logic using $show_row_actions, $course_post. // Always return $show_row_actions. return $show_row_actions; }, 10, 2 );
Changelog #
Version | Description |
---|---|
2.5.0 | Introduced. |