WPCommerce MultiDomain
woomd/ignore_options
Name: woomd/ignore_options
Type: Filter
Arguments: $ignore_options
The filter is being used to add specific options to the ignore list, to be allowed for save separately, within each of the domains.
The following example adds to the ignore the theme_settings option name:
add_filter( 'woomd/ignore_options', 'WooMD_ignore_options'); function WooMD_ignore_options ( $ignore_options ) { $ignore_options[] = 'theme_settings'; return $ignore_options; }
A global match can be achieved for an option using the % symbol, the following example will match all options like theme_color, theme_style, theme_layout etc:
add_filter( 'woomd/ignore_options', 'WooMD_ignore_options'); function WooMD_ignore_options ( $ignore_options ) { $ignore_options[] = 'theme_%'; return $ignore_options; }
The code should be placed inside a php file on wp-content/mu-plugins/ folder.