Browse: Home / Hooks /

learndash-lesson-row-attributes

apply_filters( 'learndash-lesson-row-attributes',  boolean $show_row_attributes )

Filters whether to show lesson row attributes in lesson listing.


Description #


Parameters #

$show_row_attributes

(boolean) Whether to show lesson row attributes.


Source #

File: themes/ld30/templates/lesson/partials/row.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for learndash-lesson-row-attributes filter.
 */
add_filter(
	'learndash-lesson-row-attributes',
	function( $show_row_attributes ) {
		// May add any custom logic using $show_row_attributes.

		// Always return $show_row_attributes.
		return $show_row_attributes;
	}
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.