apply_filters( 'learndash_settings_header_panel', boolean $setting_header_panel )
Filters whether to show admin settings header panel or not.
Description #
Parameters #
- $setting_header_panel
-
(boolean) Whether to show admin header panel or not.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_settings_header_panel filter.
*/
add_filter(
'learndash_settings_header_panel',
function( $setting_header_panel ) {
// May add any custom logic using $setting_header_panel.
// Always return $setting_header_panel.
return $setting_header_panel;
}
);
Changelog #
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |