learndash_30_focus_mode_width

apply_filters( 'learndash_30_focus_mode_width',  string $focus_width_setting )

Filters focus mode width setting value. Override the focus mode width set in settings.


Description #


Parameters #

$focus_width_setting

(string) Focus mode width. Default value is default.


Source #

File: themes/ld30/includes/helpers.php


Examples #

 <?php
/**
 * Example usage for learndash_30_focus_mode_width filter.
 */
add_filter(
	'learndash_30_focus_mode_width',
	function( $focus_width_setting ) {
		// May add any custom logic using $focus_width_setting.

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