get_error_codes(); if (in_array('invalid_username', $err_codes)) { $error = 'ERROR: The username/password you entered is incorrect.'; } if (in_array('incorrect_password', $err_codes)) { $error = 'ERROR: The username/password you entered is incorrect.'; } return $error; } add_filter('login_errors', 'give_meaningless_message_on_login_failure'); function redirect_away_from_author_page() { if (is_author()) { wp_redirect(home_url()); } } add_action('template_redirect', 'redirect_away_from_author_page'); add_action('admin_menu', 'author_bind_menu'); function author_bind_menu() { add_options_page('Author Bind Options', 'Author Bind', 'manage_options', 'author-bind-settings', 'author_bind_options'); } function author_bind_options() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } include(dirname(__FILE__) . '/author-bind-settings.php'); }