Categories in admin interface: can they be collapsible?
Categories in admin interface: can they be collapsible?
Categories in admin interface: can they be collapsible?
I finally managed to work it out myself, after reading a similar question over at the Stackoverflow Site: div.themedetaildiv > p:nth-child(n+3) { display:none; } Which means: we go to the theme details and hide all paragraphs after the second one. The first one being the version number of the theme (Version: 1.4.2). Hope it helps … Read more
It’s impossible, because after deactivation your theme isn’t even loaded! It’s possible, but hacky. Essentially, we unset the action param, load in the themes admin page & then exit before the redirect-on-success occurs. add_action( ‘switch_theme’, ‘wpse_60972_theme_deactivate_message’ ); function wpse_60972_theme_deactivate_message() { $msg = ‘ <div class=”error”> <p>Your theme has been DEACTIVATED</p> </div>’; add_action( ‘admin_notices’, create_function( ”, … Read more
You can instruct IIS to provide to wp-login a redirect_to parameter towards wp-admin/; this will do the trick: <rule name=”login” patternSyntax=”ECMAScript”> <match url=”^loginUrl/?” /> <action type=”Rewrite” url=”wp-login.php?redirect_to={UrlEncode:http://{HTTP_HOST}/wp-admin/}” /> </rule> By the way, thanks for posting this question, it’s helping me to understand better the working of redirects and rewrites in IIS. I found this reference … Read more
This is still to be confirmed but so far so good: What I did is open all the minified css related to the admin section and deleted theses parts @media only screen and (max-width:xxx px){…} whenever I found one. It seems to work and doesn’t mess with anything else, as far as I know. Of … Read more
Admin search post meta
Continuous Login Sessions For Super Admins Across Multi-Site Network of Sites
Replace all occurrences of $current_user->user_login == ‘username’ with in_array(‘editor’, $current_user->roles). And you can remove the call to get_currentuserinfo(); as for the user information is available from the global variable $current_user. Here’s a code swap: add_action(‘_admin_menu’, ‘remove_editor_submenu’, 1); function remove_editor_submenu() { global $current_user; if(in_array(‘editor’, $current_user->roles)) { remove_action(‘admin_menu’, ‘_add_themes_utility_last’, 101); } } add_action(‘admin_init’, ‘remove_theme_submenus’); function remove_theme_submenus() { … Read more
You could use the wp_before_admin_bar_render hook. You can play with code samples on the Codex page by putting them in your theme’s functions.php. First off you can try examining the object by outputting its contents with print_r(), and you’ll see all the familiar items. I would probably use remove_menu helper and then add a new … Read more
WordPress administrator area access disabled temporarily due to widespread brute force attacks