apply_filters( "{$this->prefix}display_options", array $current_options, null|string $location )
Filters semperfi display options.
Description #
Parameters #
- $current_options
-
(array) Current options stored for a location.
- $location
-
(null|string) Location index.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for {$this->prefix}display_options filter.
*/
add_filter(
'sfwd_lms_display_options',
function( $current_options, $location ) {
// May add any custom logic using $current_options, $location.
// Always return $current_options.
return $current_options;
},
10,
2
);
Changelog #
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |