|

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 doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

On this page
Scroll to Top