Articles of wp admin

Custom admin logo not showing after wordpress 4.5 upgrade

I have just upgraded to wordpress 4.5 and now my custom logo for the admin doesn’t work, the theme which I built uses the following in the theme functions.php: /* change admin logo */ function my_login_logo() { ?> <style type=”text/css”> .login h1 a { background-image: url(<?php echo get_field(‘logo’,’options’); ?>); background-position: center center; background-repeat: no-repeat; background-size: […]

Where is function to prevents non logged users access wp-admin?

Where is the function, that prevents non logged users, access restricted pages in WordPress? I’ve looked in several files, but not found. I want to modify the way WordPress authenticates to check cookies and also sessions. Someone, help me?

Change users.php WP_User_Query

A client has requested to have two kinds of custom user roles, and have those users displayed in an Admin Menu Page of its own. So far, I’ve achieved that using WP_List_Table with success. Now, the next request is to not display those users with those custom roles in users.php. So far, I haven’t been […]

Add custom content in user-edit.php page

When I go to edit a user’s account located in: http://web.site/wp-admin/user-edit.php?user_id=ID I want to add a custom section with my own information (just text), similar to the add_settings_section() function. However, I believe this is limited to only adding custom sections to the Settings menu: Settings — General — Reading — Media — Permalinks This is […]

How do I edit the WordPress post.php file?

I have a Custom Post Type which contain a Gravity Form on my website. I would like to display a message on the back end of the Post when logged in as admin. The message will say when the form has reached its entry submission limit. The file that displays the post content in the […]

Is there a better way of handling AJAX requests in WordPress?

I’m currently building a pretty straightforward plugin, but it relies quite extensively on AJAX requests. I’m using the standard admin-ajax endpoint for the requests, but I find that it seems to be massively inconsistent, sometimes the request (for the same data) will take a few hundred milliseconds and then sometimes take a couple of seconds. […]

“Add New” button on custom post type grid

I’ve created a custom page in my wp-admin panel to show my custom model in a grid. It extends wp_list_table, and the grid works great with sorting and pagination. I’m having trouble adding an “Add New” button above the grid, however. I’ve added the button: <a href=”admin.php?page=certificates&amp;action=new” class=”add-new-h2″>Add New</a> And it takes me to the […]

Can I limit term selection to one plus parent?

So i have a custom post type (listings) and a custom taxonomy (listing_terms). The taxonomy has parent/child terms. Eg: Restaurant -> Cafe (where Cafe is the child of Restaurant). I want to only let my users to be able to select one child term and then have the parent term automatically selected when they’re creating […]

How to add custom CSS and JavaScript file for wp- admin dashboard (backend)

I want to add some CSS and JavaScript to the WordPress dashboard but only for my custom post type design and some script functionality. Can any one suggest to me about how to include my custom CSS and JavaScript files for backend users?

Redirect an entire WordPress site on a subdomain, except wp-admin

With .htaccess I’m trying to redirect all traffic away from a WordPress site, except traffic to wp-admin. The goal is to redirect all traffic away from the site, but retain admin access. I’m using .htaccess to do this, and it’s working to an extent. But when trying to access wp-admin I get an internal server […]