How to inhibit dashboard and profile management access to normal users?
http://wordpress.org/extend/plugins/wp-hide-dashboard/ might be what you are looking for perhaps?
http://wordpress.org/extend/plugins/wp-hide-dashboard/ might be what you are looking for perhaps?
The only solution I could imagine is removing, rewriting, replacing the meta box. // First remove the original one function wpse21483_remove_catbox() { remove_meta_box( ‘post_categories_meta_box’, ‘post’, ‘side’ ); } add_action( ‘admin_menu’, ‘wpse21483_remove_catbox’ ); // not sure about the hook function wpse21483_new_catbox() { // re-define – take a look at /wp-admin/include/metaboxes.php } // Hook the new one … Read more
Check the requested URI: if(!is_admin() && strpos($_SERVER[‘REQUEST_URI’], ‘wp-login.php’) === false && strpos($_SERVER[‘REQUEST_URI’], ‘wp-signup.php’) === false) { … } But it’s probably better to use a white-list style: if(is_front_page() || is_singular() || is_archive()) { … } These 3 tags should cover pretty much all of the front-end…
As far as i know you cannot rename wp-admin. Many themes and plugin uses wp-admin in path. So if you rename it then all your plugins and themes will be broken. If you don’t want your users to access wp-admin then restrict it using .htacess If anyone access your wp-admin url redirect them to other … Read more
[Update] Answer rewritten, based on this other Q&A. To achieve this: Use this code: add_filter( ‘custom_menu_order’, ‘wpse_48933_submenu_order’ ); function wpse_48933_submenu_order( $menu_ord ) { global $submenu; // Enable the next line to inspect the $submenu values // echo ‘<pre>’.print_r($submenu,true).'</pre>’; $arr = array(); $arr[] = $submenu[‘edit.php?post_type=page’][10]; $arr[] = $submenu[‘edit.php?post_type=page’][5]; $submenu[‘edit.php?post_type=page’] = $arr; return $menu_ord; }
Easiest way to test for caching – make a plugin-breaking change (remove a ; or something), upload it, and see what happens. If your admin panel whitescreens, congratulations – you don’t have caching. If it doesn’t, chances are your server is caching all php content with something APC. Contact them and ask about caching.
Answered by @Vino here: https://stackoverflow.com/questions/12066316/sub-folder-css-template-headers-that-are-read-by-admin-panel/12139043#comment16259096_12139043 “File wp-includes/class-wp-theme.php, line 191, WP 3.4.1 source. but… there are no filters, and the class is final. You can edit at your peril, ’cause updates to WP will overwrite your efforts.”
You can add a new page using add_(sub)menu_page();. WordPress is pretty kind in this case and offers tons of hooks, filters and higher level API functions that help you going around this. Let’s just use add_users_page(); and hook into admin_menu. Example plugin It adds an admin page that has the user_login as slug. Simply drop … Read more
Get the url of a specific admin page (e.g. the settings page (options-general.php)): admin_url( ‘options-general.php’ ) Codex admin_url() Adding query arguments to an url: $params = array( ‘page’ => $_REQUEST[‘page’], ‘action’ => ‘edit’, ‘rls_element’ => $item[‘rls_name’] ); $url = add_query_arg( $params, $org_url ); Codex add_query_arg() Put a and b together: $params = array( ‘page’ => … Read more
You can create and position your own meta boxes via add_meta_box. You can store the data as meta data behind the scenes but it will allow you to customize the UI in the admin screens.