Author Change Notifier Settings

Sender Name:

The name that will appear as the sender of the email notification.

Sender Email address:

The email address that will appear as the sender of the email notification. It is not recommended to change this.

Ex-author Email Subject

The subject of the email which will be sent to the previous author of the post.

Ex-author Email Text

The text of the email which will be sent to the previous author of the post.

You can include the following placeholders in the email text to make your email text show dynamic content as you please.
%post_title% will be replaced with the title of the post.
%ex_author_login% will be replaced with the user name of the previous author of the post.
%new_author_login% will be replaced with the user name of the new author of the post.
%ex_author_email% will be replaced with the email address of the previous author of the post.
%new_author_email% will be replaced with the email address of the new author of the post.
%ex_author_id% will be replaced with the account id of the previous author of the post.
%new_author_id% will be replaced with the account id of the new author of the post.
%post_id% will be replaced with the id of the post.

New-author Email Subject

The subject of the email which will be sent to the new author of the post.

New-author Email Text

The text of the email which will be sent to the new author of the post.

You can include the following placeholders in the email text to make your email text show dynamic content as you please.
%post_title% will be replaced with the title of the post.
%ex_author_login% will be replaced with the user name of the previous author of the post.
%new_author_login% will be replaced with the user name of the new author of the post.
%ex_author_email% will be replaced with the email address of the previous author of the post.
%new_author_email% will be replaced with the email address of the new author of the post.
%ex_author_id% will be replaced with the account id of the previous author of the post.
%new_author_id% will be replaced with the account id of the new author of the post.
%post_id% will be replaced with the id of the post.

' . get_transient('acn_error') . '

'; delete_transient('acn_error'); } } //Plugin activation: populate main options function acn_plugin_activate(){ add_option('acn_email_from',get_option('admin_email')); add_option('acn_sender_name',get_option('blogname')); add_option('acn_ex_author_subject','Important notification'); add_option('acn_new_author_subject','Important notification'); add_option('acn_ex_author_msg','Dear %ex_author_login%, This is to inform you that your post (%post_title%) has been claimed by another user. The ability to update or delete the post has also been transfered to that user. This decision has been made after the other user has shown substantial evidence of his ownership of the business referred to in that post of concern. You do not have to reply to this e-mail and thanks for your understanding. Best Regards, ' . get_option('blogname') . ' Team'); add_option('acn_new_author_msg','Dear %new_author_login%, This is to inform you that the team at e5ta9er.com has authorized your claim of the post (%post_title%) and that the right to update the post (%post_title%) has been transferred to your account. To view that post please go to: ' . get_bloginfo('siteurl') . '/?p=%post_id% Kind Regards, ' . get_option('blogname') . ' Team'); } //Adds settings link to plugins page function add_acn_settings_link($links, $file){ static $this_plugin; if(!$this_plugin) $this_plugin = plugin_basename(__FILE__); if($file == $this_plugin){ $settings_link = ''.__("Settings", "photosmash-galleries").''; array_unshift($links, $settings_link); } return $links; } //Hooks add_action('post_updated', 'check_if_author_changed', 10, 3); add_filter('plugin_action_links', 'add_acn_settings_link', 10, 2); register_activation_hook( __FILE__, 'acn_plugin_activate' ); if (is_admin()) { add_action('admin_init', 'register_acn_settings'); add_action('admin_menu', 'add_plugin_menu'); add_action('admin_notices', 'acn_show_error_message'); } ?>