• Hello,

    The em_event_save hook isn’t working for me.
    Plugin version: 5.6.1

    I tried this code, but the email never arrives.

    add_filter('em_event_save','invite_group_button');
    		function invite_group_button($content){
    			$multiple_recipients = 'ss@ss.hu';
    			$subj = 'The email subject';
    			$body = 'Current url:'.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"].'';
    			wp_mail( $multiple_recipients, $subj, $body );
    		}

    But it’s working with em_event_output_single filter, but it send the emails 3 times.

    What’s wrong?

    https://wordpress.org/plugins/events-manager/

Viewing 1 replies (of 1 total)
  • Hi,

    em_event_output_single runs when the event is displayed, rather than when it’s saved.

    Does the user saving the event have the correct permissions? Is the event saving correctly?

Viewing 1 replies (of 1 total)
  • The topic ‘em_event_save hook not working’ is closed to new replies.