"This message will be displayed on all pages written by the author with the chosen nickname", 'message_location' => 'before_post', 'authornick' => 'admin' ); add_option('an_settings', $defaultdata, 'Options for Author Notify'); $an_settings = get_option('an_settings'); $an_settings['message'] = stripslashes($an_settings['message']); add_action('admin_menu', 'add_an_options_page'); add_filter('the_content', 'an_message_filter'); function add_an_options_page() { if (function_exists('add_options_page')) { add_options_page('Author Notify', 'Author Notify', 8, basename(__FILE__), 'an_options_subpanel'); } } function an_options_subpanel() { global $an_settings, $_POST; if (isset($_POST['submit'])) { ?>
Setup a text to be displayed on every post written by an author associated with a particular nickname.