• Resolved mysteerioaaltonen

    (@mysteerioaaltonen)


    I’m currently trying to alter email to have the sender address in the content. This could probably be done with own alter function in theme functions but is there a reason not to have this feature directly in the plugin? It would require these modifications:


    ESSBOptionsStructureHelper::field_section_start(‘social’, ‘sharing-2’, __(‘Customize default mail message’, ‘essb’), __(‘You can customize texts to display when visitors share your content by mail button. To perform customization, you can use %%title%%, %%siteurl%%, %%permalink%%, %%image%% and %%from%% variables.’, ‘essb’), ”);


    $message_body = preg_replace(array(‘#%%title%%#’, ‘#%%siteurl%%#’, ‘#%%permalink%%#’, ‘#%%image%%#’, ‘#%%from%%#’), array($title, $site_url, $url, $image, $from), $message_body);

    • This topic was modified 7 years, 8 months ago by mysteerioaaltonen. Reason: Better code formatting perhaps
    • This topic was modified 7 years, 8 months ago by t-p.
Viewing 1 replies (of 1 total)
  • Plugin Author Idiom

    (@brianbrey)

    That is a great suggestion, and we will look into adding it in a future release.

    For now we have two filters ‘update_easy_social_share_title’ and ‘update_easy_social_share_description’ you can hook into, but every share button uses the same title and description. I’m not sure that would solve your particular problem.

    Thanks for downloading.

Viewing 1 replies (of 1 total)
  • The topic ‘FEATURE: Add %%from%% tag to be used in email’ is closed to new replies.