apply_filters( "{$this->prefix}output_option", string $output_option, array $args )
Filters the semperfi output option.
Description #
The dynamic portion of the hook $this->prefix refers to prefix.
Parameters #
- $output_option
-
(string) Output option
- $args
-
(array) Option arguments.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for {$this->prefix}output_option filter.
*/
add_filter(
'sfwd_lms_output_option',
function( $output_option, $args ) {
// May add any custom logic using $output_option, $args.
// Always return $output_option.
return $output_option;
},
10,
2
);
Changelog #
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |