Articles of wp admin

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

I installed “HC Custom WP-Admin URL” plugin (https://wordpress.org/plugins/hc-custom-wp-admin-url/) on my WordPress installation, and then changed the admin slug value to a cryptic url (http://example.com/some-cryptic-string) so that the default (http://example.com/wp-admin) 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 wordpress.se answer, which has allowed me to hook […]

How to make sure your admin doesn't hi-jack you site?

I have a domain and I would like to hire someone to develop it. Could it be possible to give him full control, yet be safe that he does not hi-jack the site. Or the only way is for me to be the admin and add him as a user with increased privileges? Is there […]

Custom WP_Query doesn't display all posts

I’m building an options page which allows users to choose three posts and three custom images that display on the site’s front page. I am using the Settings API to create a custom WP_Query which pulls all posts from 4 different CPTs (‘resources’, ‘events’, ‘blog posts’, and ‘publications’), and populates the titles and IDs (hidden) […]