' . 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'); } ?>