guideplugin/button/label

Definition

With this filter you can edit the labels of the buttons.

Parameters

appy_filters('guideplugin/button/label/previous', $label, $filter_id);
appy_filters('guideplugin/button/label/next', $label, $filter_id);
appy_filters('guideplugin/button/label/finish', $label, $filter_id);
  • $label (string) Label des Buttons
  • $filter_id (int) Die ID des Filters.

Example

The example shows you how to customize the label for the Next button.

<?php 
function my_guide_button_label_next($label, $filter_id) { 

    // The filter you want to modify 
    if ($filter_id == 24) {
        $label = __('Next Step', 'textdomain').'<i class="fa fa-chevron-right"></i>';
    } 
    return $label; 
}
add_filter('guideplugin/button/label/next', 'my_guide_button_label_next', 10, 2);