Filters/Actions for Content Toggle Widget

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 「OFF」 LABEL IN 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.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註