Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Deepen

    (@j_3rk)

    Hi there,

    Please update to version 3.0.1 and you can change the plugin modal text like below.

    add_filter('ina_popup_modal_text', 'ina_change_modal_text');
    function ina_change_modal_text( $modal ) {
       $modal['continue'] = 'YOUR CUSTOM TEXT';
       return $modal;
    }

    Please add above code to your functions.php file in your active theme.

    Thread Starter generosus

    (@generosus)

    Hi @j_3rk,

    Wow, that is awesome. Done. It works great.

    Comment:

    The filter you provided is modifying the button text of both modals (“Warn Message Only” and “Idle Message Content”). Is their any way you can create a filter for each modal?

    Thank you so much!

    Plugin Author Deepen

    (@j_3rk)

    @generosus
    Will add this in the next update. Will add a dynamic field in settings page to change the text without using any filters so give me some time for this.

    Thanks

    Plugin Author Deepen

    (@j_3rk)

    Hi @generosus

    Dynamic fields to change the text for both buttons should now be available in new version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Code Snippet to Change Button Text’ is closed to new replies.