WordPress filter hook
dslc_module_options
Fired by 6 WordPress plugins, running on 10K+ sites between them.
“Filter the options of the module (like Live Composer does it for its own modules).”
How to use dslc_module_options
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'dslc_module_options', function( $dslc_options, $module_id ) {
// Change $dslc_options here.
return $dslc_options;
}, 10, 2 );Argument names come from Live Landing Page Composer's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
6 plugins that fire dslc_module_options
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Live Composer10,000+ installs
apply_filters( 'dslc_module_options', $cached_dslc_options, $this->module_id )modules/accordion/module.php:48 -
Easy Language100+ installs
apply_filters( 'dslc_module_options', $options, $this->module_id )legacy-classes/LiveComposer/Easy_Language_Live_Composer_Switcher.php:74 -
Live Landing Page Composer50+ installs
apply_filters( 'dslc_module_options', $dslc_options, $this->module_id )modules/accordion/module.php:624 -
Live Composer10+ installs
apply_filters( 'dslc_module_options', $dslc_options, $this->module_id )lc-mailchimp-module.php:633 -
threadi Now PagesFewer than 10 installs
apply_filters( 'dslc_module_options', $dslc_options, $this->module_id )legacy-classes/LiveComposer/module.php:252 -
LC Widget ModulesFewer than 10 installs
apply_filters( 'dslc_module_options', $this->get_options(), $this->module_id )lc-widget-modules.php:47
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.