Comments counter only for Authors Posts

For the moment just for hiding the comments counter from an author role, i made a small code like that /* * Hide Comments Counter for Author Hook */ if ( ! current_user_can( ‘manage_options’ ) ) { add_filter( ‘comment_status_links’, function( $status_links ) { // Override the original links: $status_links[‘trash’] = sprintf( “<a href=%s>%s <span class=”count”></span></a>”, … Read more

Sort columns in the ‘Pages’ dashboard overview

I just realized that there was a typo in the code. The meta-tag should read ‘prod_hierar’ instead of ‘prod-hier’. This fixes the issue. (Too much experimenting, I guess ..). Function ‘wms_hierarchy_col_orderby()‘ thus becomes: function wms_hierarchy_col_orderby( $vars ) { if ( isset( $vars[‘orderby’] ) && ‘prod_hierar’ == $vars[‘orderby’] ) { $vars = array_merge( $vars, array( ‘meta_key’ … Read more

Admin Access for specific page(s)

I know this question is kind of off-topic but I need to come in and say firstly don’t add anybody… anybody…. ANYBODY!! as admin on the site… At that level they can do everything you can do, or probably a lot more if they actually know what they’re doing :-p It’s a good way of … Read more

Disable plugin for administrator

I just tested your code and it works, so it seems one of the two following things. You are placing the code in the wrong place, make sure you put that code at the bottom of the functions.php file of your theme. Or maybe the functions.php file of your theme is having problems, in which … Read more

Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)

Try disabling all plugins temporarily (you can do that quickly by renaming the wp-content/plugins folder to something else). See if that fixes the admin screen. If it does, make a new wp-content/plugins folder, then move plugin folders from the renamed folder back into the wp-content/plugins folder one at a time. Retest, and see if one … Read more