Articles of admin

Is there a filter to remove or replace the post title's link in the admin post table view (edit.php)?

I thought I could use the filter the_title. But that let’s you change the text only. I would like to disable the title link for specific pages. So the title text would stay the same, but the user wouldn’t be able to click on it and get to the edit post page. I can think […]

How much traffic is real traffic?

I have my own domain with my own wordpress installation at I have both “Count Per Day” and “Jetpack Site Stats” installed and they are usually pretty close in agreement about site stats. What I’m curious about is how much traffic reported is likely real traffic versus bots and things? Sometimes I see spikes […]

Strange menu behaviour wordpress admin

This question already has an answer here: WordPress admin menu formatting issue 1 answer

Making menu link open in new tab?

I’m trying to add a top level menu to the left sidebar of the WordPress admin panel. Here’s the code I currently have: add_action( ‘admin_menu’, ‘linked_url’ ); function linked_url() { add_menu_page( ‘linked_url’, ‘Menu Title’, ‘read’, ‘my_slug’, ”, ‘dashicons-text’, 1 ); } add_action( ‘admin_menu’ , ‘linkedurl_function’ ); function linkedurl_function() { global $menu; $menu[1][2] = “”; } […]

Load stylesheet on custom admin submenu page

I’m trying to load a stylesheet for a particular admin submenu page. The code below is what I came up with after looking up admin_enqueue_scripts in the codex: function my_function($hook) { if ( ‘themes.php?page=page-name’ != $hook ) { return; } wp_enqueue_style( ‘custom-style’, get_template_directory_uri() . ‘custom-page/style.css’ ); } add_action( ‘admin_enqueue_scripts’, ‘my_function’ ); As you can see […]

Redirect public site to another one but allow administrators to access the old site

I have two WordPress sites and I’m closing one of those sites and want all traffic redirected to the second website. If possible I would like to have the first to be viewed only by administrators only. Can this be done? Any thoughts on how this can be achieved?

Redirect admin 403 “Cheatin uh?” admin pages

Blocking role capabilities on the admin returns the 403 “Cheatin Uh?” page. What is the best way to redirect this to 403 page to perhaps the dashboard, homepage, or a custom 403 page? I know I could probably achieve this using .htaccess, but I’d prefer to stick with php / wordpress related functions. For example […]

Filter posts of custom post type by meta key in (List All Section)

How can I filter the posts which are displayed on the admin list all page of a custom post based on the value of the a value. So far I know how to do the following anywhere on the front end: $args = array( ‘meta_key’ => ‘magic_key’, ‘meta_value’ => $post_id, ‘post_type’ => ‘question’, ‘post_status’ => […]

Send admin to a different login than users?

I have created a separate login page on /login/ and have wp-login.php redirecting there as well – I have also hooked into a few WP login related hooks such as wp_login_failed so that people get redirected there. However I have now decided I want admins to continue to be able to login from the standard […]

How do I hide certain taxonomy boxes from users in admin add post page?

I would like to hide this particular taxonomy box in the admin on the add new post page.