[\s\S]*?]*)>)!ims', 'access_keys_finish', $cats); } // ******************************* // Add Page Access Keys // ******************************* add_filter('wp_list_pages', 'access_keys_pages'); function access_keys_pages($pages) { return preg_replace_callback('!(
  • ]*)>)!ims', 'access_keys_finish', $pages); } // ******************************* // Add Access Keys // ******************************* function access_keys_finish($matches){ global $access_keys; $id = $matches[3]; $link = $matches[0]; if($access_keys[$matches[2]][$id]){ $accesskey = $matches[4]. ' accesskey="'.$access_keys[$matches[2]][$id].'" '; $link = str_replace($matches[4], $accesskey, $link); } return $link; } // ******************************* // Admin Panel // ******************************* function access_keys_update_options($options){ global $access_keys; while (list($option, $value) = each($options)) { $access_keys[$option] =$value; } return $access_keys; } add_action('admin_menu', 'access_keys_menu'); function access_keys_menu() { add_submenu_page('edit.php', 'Access Keys', 'Access Keys', 8, __FILE__,'access_keys_admin'); } function access_keys_admin(){ global $access_keys; if ($_POST["action"] == "saveconfiguration") { access_keys_update_options($_REQUEST['access_keys']); update_option('access_keys',$access_keys); $message .= 'Access Keys Updated.
    '; //if we don't the panel will show old value...which may scare people. //$inapall doesn't need to be updated because it has the new values added to it immediately } $pages = get_pages(); $cats = get_categories(); $pagesnokey = array(); $pagesyeskey = array(); $catsyeskey= array(); $catsnokey = array(); foreach($pages as $page){ if($access_keys['page'][$page->ID] != ''){ $pagesyeskey[] = array($page->ID,$page->post_title,$access_keys['page'][$page->ID]); }else{ $pagesnokey[] = array($page->ID,$page->post_title); } } foreach($cats as $cat){ if($access_keys['cat'][$cat->cat_ID] != ''){ $catsyeskey[] = array($cat->cat_ID,$cat->cat_name,$access_keys['cat'][$cat->cat_ID]); }else{ $catsnokey[] = array($cat->cat_ID,$cat->cat_name); } } ?>

    Access Keys Configuration

    Instructions

    Use of this plugin is simple. On the the first box lists pages and categories with a current access key, and the second box lists the pages and categories without access keys.

    To add an access key to a page or category just type an access key in its text box and then click the save button. The categories or pages will now move to the top list.

    To remove an access key from a page or category just remove the access key from its text box and click the save button. The category or page will now move to the second box.

    Current Access Keys

    Pages:

      block; }?>
    Categories:

      block; }?>

    Current Access Keys

    Pages:

      block; }?>
    Categories:

      block; }?>


    Have you found this Plugin useful?
    If this Plugin has helped you, isn't it worth a little bit of time or money? If you are feeling monetarily generous make a donation.
    How much is entirely up to you, but numbers with lots of 0's, a 1 on the left and a decimal point on the right are the best kind. =D

    Or if circumstances make a donation impossible, links, refferals and comments are appreciated.