Browse: Home / Hooks /

{$this->prefix}update_options

apply_filters( "{$this->prefix}update_options",  array $options,  null|string $location )

Filters options for a particular prefix.


Description #

The dynamic part of the hook $this->prefix refers to the semperfi setting prefix.


Parameters #

$options

(array) An array of options.

$location

(null|string) Location index.


Source #

File: includes/class-ld-semper-fi-module.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for {$this->prefix}update_options filter.
 */
add_filter(
	'sfwd_lms_update_options',
	function( $options, $location ) {
		// May add any custom logic using $options, $location.

		// Always return $options.
		return $options;
	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
2.1.0 Introduced.