• Resolved bientang

    (@bientang)


    Hi,

    i’ve tried to use your snippet to change button text:

    add_filter('ppom_select_option_lable', 'change_select_option');
    function change_select_option( $select_label ) {
    $select_label = "My Label";
    return $select_label;
    }

    but it wont work.
    My website use oceanwp theme.

    Any other snippet suggestion to change buttong text?

    Please feedback. Thanks. ??

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Please use it like:

    add_filter('ppom_option_label', 'ppom_change_label', 11, 4);
    function ppom_change_label($label, $option, $meta, $product){
       
        $label = $option['option'];
        return $label;
    }
    Christian

    (@digitalentrepreneurtools)

    Hi, I would like to add text to my Gutenberg buttons. Do I need to add the above code to do this? Surely not. Maybe I have a plugin conflict that’s stopping me adding button text? Any help would be appreciated, thanks.

    Update!

    I’ve just deactivated all my plugins and still, I cannot figure out how to edit the button text…

    Am I missing something?

    Or is this a Gutenberg bug?

    Thanks

    • This reply was modified 5 years, 9 months ago by Christian.
    • This reply was modified 5 years, 9 months ago by Christian.

    Hi,

    we have add option in PPOM to change ‘Select option’ text via PPOM settings page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Select Option” Button Text’ is closed to new replies.