Announcement


Home Forums Front End PM PRO Announcement

This topic is: Resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #21971

    Hi

    I purchased the pro version of the plugin.
    And where the free version has a button to send only 1 announcement mail to all selected user-roles (with them in everyone in bcc) the paid version wants to send all individual emails.

    Is there a way to make the Pro version do the same for announcements?
    So send 1 mail to all selected users, but everyone is in bcc.

    #21975
    Shamim Hasan
    Keymaster

    Add following code in your theme’s (child theme’s if you are using) functions.php

    add_action( 'init', function() {
        if ( class_exists( 'Fep_Email_Beautify' ) ) {
            remove_action( 'wp_loaded', array( Fep_Email_Beautify::init(), 'announcement_email_send' ), 12 );
        }
    }, 12 );
    
    #21977

    Hi,

    Yes, I do use a child theme, so i tried it.
    This does give back the function of having only one mail, but now the email is not “beautified” anymore.
    Is there a way to have both functions.

    In the beautified email i use an HTML layout and the following tags:

    • {{subject}}
    • {{message}}
    • {{announcement_url}}
    • {{site_title}
    • {{site_url}}

    So the email is equal for everyone.

    #21992
    Shamim Hasan
    Keymaster

    Remove previous code and add following code in your child theme’s functions.php

    add_action( 'init', function() {
        if ( class_exists( 'Fep_Email_Beautify' ) ) {
            remove_action( 'wp_loaded', array( Fep_Email_Beautify::init(), 'announcement_email_send' ), 12 );
            add_filter( 'fep_filter_before_announcement_email_send', array( Fep_Email_Beautify::init(), 'filter_before_email_send' ), 10, 2 );
        }
    }, 12 );
    

    This is a non standard solution. This may break in future.

    #21996

    Dear

    This does not seems to work. The mails still show the standard (from the free version) text.
    Do I need to do something extra?
    I already deactivated and activated the plugin again.

    #21999
    Shamim Hasan
    Keymaster

    I have updated above code. Please use this code.

    #22015

    It looks like its working.

    thanks!

Viewing 7 posts - 1 through 7 (of 7 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.