Changing Default Email Address

Changing Default Email Address

The sender email address, also known as the “From” in the admin panel helps your event attendees identify you and your business. That is why it is essential for you to add an easily recognizable sender’s email address while filling up your preferences in the admin panel.

Generally, your personal email address is added to the From section as the default sender but you can change it easily using the below mentioned code:

  1. // Function to change email address
  2.  function wpb_sender_email( $original_email_address ) {
  3. }
  4. / Function to change sender name
  5. function wpb_sender_name( $original_email_from ) {
  6. return 'A miracle worker';
  7. }
  8. // Hooking up our functions to WordPress filters
  9. add_filter( 'wp_mail_from', 'wpb_sender_email' );
  10. add_filter( 'wp_mail_from_name', 'wpb_sender_name' );
    • Related Articles

    • How to replace default event banner placeholder image

      Replace default event banner placeholder image In order to add the default image in the banner, when someone does not submit any event banner, you can add the following code Open your child theme, Add the code into the funtions.php file: add_filter( ...
    • Changing the event slug/permalink

      In this guide, we will show you how you can change or customize the event slug or permalink. It usually appears like this: http://yoursite.com/events/event-listing-title in the default settings. To customize this with WP Event Manager, you can use ...
    • List of all the default template and fields given in core and Premium Add-ons

      The default templates offered by WP Event Manager are mentioned below. The default fields & default template available in the core plugin are as follows: WP-Event-Manager Account-signin.php Content-event_listing.php Content-no-events-found.php ...
    • Change Default Events Listing View

      WP Event Manager tutorial shows how to Change Default Listing View of Events. Show default events listing view Apply layout via shortcode, [events layout_type="box"] //values for layout type: box,list Apply layout via js, /** You need to put code in ...
    • Create default image path filter

      In this WP Event Manager tutorial, you will learn about how you can create a default image path filter. Every event organizer tries to gain as much attention as possible from their visitors or target audiences and using an attractive event banner ...