Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter to modify the from email when sending mails with the form option via filter essb_mailshare_from_header (example in the details) #367

Closed
appscreo opened this issue Mar 2, 2023 · 1 comment
Labels
customer suggestion enhancement Improvements that slightly enhance existing functionality and are fast to implement fixed Issue is fixed module: Share Buttons new feature Indicates new feature requests from customer roadmap The new functionality of plugin that is planned (internal or customer suggestions)
Milestone

Comments

@appscreo
Copy link
Owner

appscreo commented Mar 2, 2023

No description provided.

@appscreo appscreo added enhancement Improvements that slightly enhance existing functionality and are fast to implement new feature Indicates new feature requests from customer module: Share Buttons customer suggestion roadmap The new functionality of plugin that is planned (internal or customer suggestions) fixed Issue is fixed labels Mar 2, 2023
@appscreo appscreo changed the title Filter to modify the from email when sending mails with the form option Filter to modify the from email when sending mails with the form option via filter essb_mailshare_from_header (example in the details) Mar 2, 2023
@appscreo
Copy link
Owner Author

appscreo commented Mar 2, 2023

A new filter essb_mailshare_from_header is added to modify the header line. Example usage:

add_filter('essb_mailshare_from_header', function($options) {
    /**
     * Available $options keys:
     *   from_email
     *   from_name
     *   to_email
     *   site_email
     *   site_name
     */
    return 'From: '.$options['from_name'] . '<' . $options['from_email'] . '>';
});

@appscreo appscreo added this to the 8.9 milestone Apr 3, 2023
@appscreo appscreo closed this as completed Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer suggestion enhancement Improvements that slightly enhance existing functionality and are fast to implement fixed Issue is fixed module: Share Buttons new feature Indicates new feature requests from customer roadmap The new functionality of plugin that is planned (internal or customer suggestions)
Projects
None yet
Development

No branches or pull requests

1 participant