• Resolved johannes0

    (@johannes0)


    Hello Support,

    Wow what a great plugin you guys have made.
    In my ‘wp-even-manager-template.php” I have tried to delete the “listing on https://MyWebSite.com” query, but when saved I got php/syntax errors on my page.

    Are you willing to show me what I have to delete in the following line code, in order not not show the “listing on https://MyWebSite.com” string? (i’m such a php noob)

    $method->subject = apply_filters( 'event_manager_registration_email_subject', sprintf( __( 'Registration via "%s" listing on %s', 'wp-event-manager' ), $post->post_title, home_url() ), $post );

    Thank you so much in advance for any help, you are willing to give.

    Johannes

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @johannes0,
    Why do you want to remove email subject filter from the file? I am quite not sure what you want to delete and why?

    Please explain which section or function do you want to remove and the reason behind this.

    Thank you

    Thread Starter johannes0

    (@johannes0)

    Hello @hiteshmakvana,

    I don’t want to delete the whole subject from it,
    only the part that says : “listing on https://MySite.com”

    The reason behind this is, the way how I will use the form, it’s not needed to have this included.
    Registration via “Title Of This Event” will do the job for me.(first part of the subject line)
    Without the second part, the email-subject does look a bit more clean.

    Thank you. ??

    Hi @johannes0,

    Thank you for your explanation. Please use below code to remove url from the subject line :
    $method->subject = apply_filters( 'event_manager_registration_email_subject', sprintf( __( 'Registration via "%s" ', 'wp-event-manager' ), $post->post_title ), $post );

    2. If you change core files of the plugin you will lost your changes after updating plugin.You can change the subject from your theme side function file by adding following code to your theme’s functions.php file

    add_filter('event_manager_registration_email_subject','your_theme_name_custom_subject_for_email');
    function your_theme_name_custom_subject_for_email($post){
    return sprintf( __( 'Registration via "%s" ', 'wp-event-manager' ), $post->post_title ) );
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Registration Per Email’ is closed to new replies.