apply_filters( "{$this->prefix}submit_options", array $submit_options, null|string $location )
Filters semperfi submit options for a prefix.
Contents
Description #
The Dynamic portion $this->prefix refers to prefix.
Parameters #
- $submit_options
-
(array) An array of submit options
- $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}submit_options filter.
*/
add_filter(
'sfwd_lms_submit_options',
function( $submit_options, $location ) {
// May add any custom logic using $submit_options, $location.
// Always return $submit_options.
return $submit_options;
},
10,
2
);
Changelog #
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |