Articles of admin

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.

I installed WordPress locally now how do I login?

I downloaded a WordPress website that I am modifying for a friend. He gave me access to cPanel, where I downloaded the SQL and changed it on XAMPP. Now when I open >localhost/wp it opens the website but without the control panel. I think to modify I need to access >localhost/wp/wp-admin but I don’t have […]

Which hook for processing plugin page form data?

Which hook should I use for processing form data from my plugin pages. I currently use “admin_init”. Is that correct? Was this hook intended to be used this way?

How to change the User name and Password of admin account

By default i have selected the Username of admin account as “admin” , of the WordPress CMS while installing wordpress first time. Now i want to deploy the webpage : considering the security precautions , i want to change User name and Password of admin account. Can anyone guide me on this. The database for […]

Best practice for plugin: always detect admin-ajax call?

Recently I was debugging/hacking a plugin authored by someone else. I put a breakpoint at a spot I was interested in – a relatively complex admin page. I noticed that even during admin-ajax calls this particular plugin still goes through all the logic to generate the page in question. Even though it is never displayed. […]

Admin bar is disabled in front

I’m having a problem and i cant find any solution at all. i have a wordpress site with a theme and all of a suddenn after changing only the footer height with css it dissapeared the content of the footer and also the admin bar. When i deleted the css changes it still had the […]

Featured image on post edit page not loading over HTTPS

Our site uses TLS and to the best of my ability I’ve forced TLS everywhere. I’ve defined FORCE_SSL_ADMIN to be true and also tried the following filter which I’ve borrowed from the plugin SSL Insecure Content FIxer ( function fix_ssl_attachment_url( $url ) { if ( is_ssl() ) { if (stripos($url, ‘http://’) === 0) { $url […]