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 #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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;
}
);
Changelog #
| Version | Description |
|---|---|
| 3.0.5 | Introduced. |