Browse: Home / Hooks /

{$this->prefix}settings_update

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

Fires after the settings update for a 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}settings_update action.
 */
add_action(
	'sfwd_lms_settings_update',
	function( $options, $location ) {
		// May add any custom logic using $options, $location

	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
2.1.0 Introduced.