WordPress.org

Forums

MailChimp Widget
[feature request] Add filter for success message (2 posts)

  1. Jan Zikmund
    Member
    Posted 1 year ago #

    Hello,

    I would like to suggest one improvment to the WP Mailchimp Widget plugin. We currently use this adjustment, but that means the plugin is modified and cannot be updated. It would be really nice to have this feature in the core, and I think also other users could benefit of it.

    What I would like is apply some filter to the "submit successfull" message, so anyone can adjust it from the theme. For example assign there some image, or (as in our case), bind there javascript code that fires Google Analytics track event. The adjustment is very simple and doesn't influence present users in any way -

    in /mailchimp.php, around line #1330, there is block

    else {
    		$msg = "<strong class='mc_success_msg'>".esc_html(__("Success, you've been signed up! Please look for our confirmation email!", 'mailchimp_i18n'))."</strong>";
    	}

    I would like to add the filter, so it would look like this:

    else {
    		$msg = "<strong class='mc_success_msg'>".esc_html(__("Success, you've been signed up! Please look for our confirmation email!", 'mailchimp_i18n'))."</strong>";
    		$msg = apply_filters('mailchimp_signum_success_message', $msg);
    	}

    Do you think this would be possible? Thanks in advance

    Jan

    http://wordpress.org/extend/plugins/mailchimp-widget/

  2. Jan Zikmund
    Member
    Posted 1 year ago #

    any news regarding this?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MailChimp Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic