Filters/Actions for Content Toggle Widget

Filters available for Content Toggle are listed below.

 HELPS MODIFY “on” LABEL IN label box switch.

add_filter( 'uael_toggle_on_label', function( $on_label, $settings  ) {
// Modify the string here
    return $on_label;
}, 10, 2 );

Note$on_label –  The ON label string in Label Box switch style.

HELPS MODIFY THE “OFF” LABEL IN THE LABEL BOX SWITCH.

 add_filter( 'uael_toggle_off_label', function( $off_label, $settings ) { 
// Modify the string here
return $off_label;
}, 10, 2 );

Note$off_label –  The OFF label string in Label Box switch style.

If you are not sure where to put this code, please review the documentation on how to enter custom codes into your website here.

Was this article helpful?
Did not find a solution? We are here to help you succeed.

Related Docs

Get access to growing library of 40+ innovative widgets and 300+ creative templates.

Scroll to Top