Skip to content
Ale Mostajo edited this page Oct 6, 2020 · 1 revision

The following hooks can be used to filter customizer options.

NOTE: Replace {namespace} with the namespace of the WordPress MVC project you which to add hooks for.

wpmvc_addon_customizer_panels_{namespace}

Filter hook that allows filtering customizer panels for the desired namespace.

add_filter( 'wpmvc_addon_customizer_panels_{namespace}', function( $panels ) {
    return $panels;
} );

wpmvc_addon_customizer_sections_{namespace}

Filter hook that allows filtering customizer sections for the desired namespace.

add_filter( 'wpmvc_addon_customizer_sections_{namespace}', function( $sections ) {
    return $sections;
} );

wpmvc_addon_customizer_settings_{namespace}

Filter hook that allows filtering customizer settings for the desired namespace.

add_filter( 'wpmvc_addon_customizer_settings_{namespace}', function( $settings ) {
    return $settings;
} );

wpmvc_addon_customizer_controls_{namespace}

Filter hook that allows filtering customizer controls for the desired namespace.

add_filter( 'wpmvc_addon_customizer_controls_{namespace}', function( $controls ) {
    return $controls;
} );

wpmvc_addon_customizer_render_settings_{namespace}

Filter hook that allows filtering customizer rendering settings for the desired namespace.

add_filter( 'wpmvc_addon_customizer_render_settings_{namespace}', function( $settings) {
    return $settings;
} );