Articles of wp admin

always by default show welcome panel in the dashboard

i am looking for solution to show always welcome panel in the dashboard by php code. i know that for every user this parameter is stored in DB. the question is, how can i check if the login user don’t see the “welcome panel”, and the check box is not checked, to show the welcome […]

Why are no posts showing despite my apparently correct DB restoration?

I restored a backup to MySQL using the phpMyAdmin Import feature. When I browse the DB in phpMyAdmin, I see that my posts are there. But in WordPress, I only see the default out-of-the-box welcome post. Even the WordPress admin shows no signs of the info in the database. (I checked that this is the […]

Locked out of admin panel after installing HC Custom WP-Admin URL

I installed “HC Custom WP-Admin URL” plugin ( on my WordPress installation, and then changed the admin slug value to a cryptic url ( so that the default ( is not visible. Unfortunately now, for some reason, I am unable to unable to see either of the URLs. Effectively, I am now locked out of […]

Page template for a site from network

Is there a way to dispay in the WordPress admin distinct templates based on which blog you are ? Let’s say that for the blog travel I have the page template page-travel.php. How can I hide it on all the blogs and dispay the template only on the travel blog ?

Disable Admin CP authentication (or auto login)

Is there a way to allow anyone into the admin panel, without the need to log in? Or, if need be, is there a way to have WordPress auto-login using a certain set of credentials? This seems like something that should be trivial, but it appears nobody else has found a use case for this […]

WordPress Brute Force Prevention

I am using WordFence security plugin for keeping track of login attempts and I regularly check the logs from it. I realize that there are going to be a lot of login attempts with the username ‘admin‘. Most only try a couple times and leave the site alone. However, I am having one particular attempt […]

Dashboard Widget CSS

I want to add a class name to my custom dashboard widget but I’ve found no way to do this searching the codex. Right now the only class name on my widget is postbox (which is added in ‘/wp-admin/includes/template.php’) but I would like to add more. How can I do this? add_action(‘wp_dashboard_setup’, function () { […]

How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”

I have a custom post type for a plugin I’m creating and the label for the “add an item” type of button (at the top of the list page) needs a partner-button that says “import” and one that says “export” so that I can (after a brief confirmation dialogue) allow my client to push and […]

Media upload default title from file name

I’m on a roll today with the questions. Is this easy? Again, I can’t seem to find the right filter (nor previous question with a suitable answer). So if you download an image say, from GettyImages, it might have some meta title and WP will snack that up for the title field, I do not […]

Detect Featured Image remove while editing post in wp-admin (client-side)

I’m looking to add some client-side (JavaScript) events to the post edit screen of wp-admin (post.php?action=edit). I wish to fire events when the user selects a new featured image and a different event when they remove the featured image. So far I’ve been able to find this answer, which has allowed me to hook […]