@derjac
/**
* UM hook
*
* @type filter
* @title um_get_option_filter__{$option_id}
* @description Change UM option on get by $option_id
* @input_vars
* [{"var":"$option","type":"array","desc":"Option Value"}]
* @change_log
* ["Since: 2.0"]
* @usage
* <?php add_filter( 'um_get_option_filter__{$option_id}', 'function_name', 10, 1 ); ?>
* @example
* <?php
* add_filter( 'um_get_option_filter__{$option_id}', 'my_get_option_filter', 10, 1 );
* function my_get_option_filter( $option ) {
* // your code here
* return $option;
* }
* ?>
*/
UM Core Script: class-options.php
$option_id: 'access_exclude_uris'
add_filter( 'um_get_option_filter__access_exclude_uris', 'my_get_option_filter', 10, 1 );
function my_get_option_filter( $option ) {
// your code here
$option[] = 'https://yourdomain.com/um-page-xx/';
// etc
return $option;
}
Hi @derjac
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂
Regards