Questions tagged [admin]

Users with the ability to perform administrative tasks for a site or a network of sites.

Filter by
Sorted by
Tagged with
0 votes
1 answer
53 views

Can I have custom post types in "Add menu items" on in the Admin > Appearance > Menu

I want to easily add custom post types to my menus. I know that I can do it with a custom link but I want to make it as easy as possible for a client. How do have a custom post type selectable under '...
lomokev's user avatar
  • 173
0 votes
0 answers
21 views

Possible to show in media library if images are being used as featured images?

Is it possible to make an admin column in the media library that will indicate whether or not an image is used somewhere as a 'featured image'?
imagina's user avatar
0 votes
1 answer
38 views

Live reload preview just reloads forever

There is a new preview feature on WordPress that looks like this: When it's clicked, it reloads the preview over and over and over again. Why would this happen? I tried disabling different plugins ...
kawnah's user avatar
  • 123
1 vote
2 answers
255 views

Searching custom fields is removing search on the post_title column

I have the following custom search active in our WP admin for only administrators add_action('pre_get_posts', 'query_custom_admin_search', 21 ); function query_custom_admin_search( $wp_query ) { ...
AdamJones's user avatar
  • 298
0 votes
0 answers
81 views

Wordpress Admin extremely slow when other admin logged in

The sites has multiple authors/admins, who may sometimes edit/publish posts at the same time. Whenever more than one user is author/administrator is editing/publishing another post, the WP Admin ...
Ed Shway's user avatar
  • 101
0 votes
2 answers
91 views

Can we change the hook firing sequence?

In admin, I need to fire the save_post action before firing the transition_post_status hook. But according to this, the transition_post_status fires first before the post is saved. How can I reverse ...
ratib90486's user avatar
0 votes
1 answer
70 views

Cannot create new posts or upload images using media manager

My WordPress website was recently moved from one a shared hosting provider to a VPS setup at Digital Ocean. I provisioned the server myself and have WordPress running on a LAMP stack with Linux Ubuntu ...
Mike Hermary's user avatar
0 votes
0 answers
212 views

In PHP how do I make my navigation bar show certain links to admins only?

My admin panel on my nav bar only shows to accounts with the username 'admin' as the moment, I would like it to search my USERS database and only show the link to userswith a user_level of 1. My DB ...
Ghost's user avatar
  • 1
0 votes
1 answer
562 views

Maintenance mode excluding site administrators

I want to set the site into maintenance mode without using a plugin so that anyone who accesses the site who is not a site admin will see a "sorry site under maintenance" page. I created a ....
Wiliam Jose Koester's user avatar
2 votes
0 answers
64 views

Get user id for delete and update selected user

I'm trying to create admin form which can perform user creation, update and delete from frontend, See attached i'm trying to update user from update button but i'm little confuse how to get id for ...
Dhruv Suthar's user avatar
1 vote
1 answer
2k views

New user form rejected because "passwords don't match"—but there's only one password field

I am trying to add a user to a blog of writings by or about my late father.  One of the articles is by my niece, but I cannot add her as a user.  The admin form only has one field for password, but ...
WGroleau's user avatar
  • 115
0 votes
0 answers
24 views

Gutenberg UI has changed

I'm building a new version of my site offline. I've exported/imported all my blog posts in and that seems to have worked. Only thing is, the layout of the Gutenberg editor looks horrible locally. Is ...
Eli Nathan's user avatar
0 votes
1 answer
228 views

hide elements of admin with css file

i use woocommerce and woocommerce Product Vendors (https://woocommerce.com/products/product-vendors/) i want hide elements of admin with css file "my-admin.css" I put css file "my-admin....
Calachuka's user avatar
1 vote
1 answer
482 views

SQL Query to Update Admin Email

After pushing a staging site to production I have admin@example.test set as the admin email which I need to change. Obviously I can't access that email to verify the change because it doesn't exist so ...
Mike Ciffone's user avatar
0 votes
0 answers
97 views

Admin menu in different languages

My Wordpress admin language is partially in English and partially in Dutch. This causes some things (like events) to show in English on the site, which is not supposed to happen. I used 'admin menu ...
Jessica's user avatar
0 votes
0 answers
303 views

Can I use application/json content type in Wordpress

I was using application/x-www-form-urlencoded and it was working all ok then I changed the content type to application/json and it is returning a 400 Bad Request error. Is it that WordPress dosn't ...
Ayo Reis's user avatar
  • 111
0 votes
0 answers
37 views

Admin Custom Plugin List Files in admin Table

I'm building a plugin that works only in admin. I've a page where I need a list of files, users can only download or delete the file. I've this questions: I don't know what is better to list the ...
Alex's user avatar
  • 1
0 votes
1 answer
159 views

How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?

I'm working on the WordPress where I have multiple custom post type, but I want to know How we can create menu and use as a add-submenu-page for admin menu? I want to create add menus from Appearance &...
farhan dharsi's user avatar
0 votes
1 answer
213 views

Give admin_menu permission to specific users

I created a admin menu for my Wordpress website. The capabillity / rules are set to manage_options. Now I want give permission to another user that is only an editor. Does anybody know how I can do ...
Jop's user avatar
  • 27
0 votes
1 answer
241 views

How to log out from admin or front-end only?

It's a minor inconvenience that when I try to login to front-end as other user I have to open incognito mode because by default I am logged in as admin on the frontend and if I log out it also log me ...
shenkwen's user avatar
  • 131
0 votes
1 answer
69 views

Call require_once form admin page with checkbox

I'm creating a custom WP plugin. Inside my main plugin file (functions.php) I've includes the following line of code so a second file (module_2.php) with additional code will be loaded: define( '...
AartStaartjes's user avatar
0 votes
1 answer
283 views

I need help using pre_get_comments to limit comments in the comments admin screen

I am trying to limit the comments in the comments admin screen to: Display all comments for the current user Display all the comments made on the current user's post if(!current_user_can('...
Fabian Amran's user avatar
0 votes
1 answer
35 views

my wordpress configuration locally vs live server

I've just got a hosting plan(A free WordPress hosting plan). My website is still in its basic form(the 21 theme from WordPress, and the hello world post). I intend to work locally on my website, then ...
user avatar
0 votes
0 answers
23 views

Spoof the admin panel on the client side? [duplicate]

I'm working on some admin dashboards with a plugin that uses shortcodes that are not available in the admin panel (can't use do_shortcode() - I tried). However these are dashboards that I really want ...
techiechic's user avatar
0 votes
1 answer
171 views

post.php AJAX request not being called when publishing post

I am using the transition_post_status to process a post being published. I was getting inconsistent behaviour between two installations of WordPress, and I have tracked this down to the AJAX calls ...
MattRogowski's user avatar
0 votes
2 answers
1k views

PHP warning - Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php

I have a bothering PHP warning for ages, and I am wondering if someone has solution to this. The following two-line warning is constantly recording in my error_log file: PHP Warning: Use of undefined ...
Mahdi's user avatar
  • 1
1 vote
0 answers
21 views

Admin access for custom user capabilities

I've got a site with a lot of custom user roles and capabilities, and I'm trying to allow users with a new capability 'admin_panel_access` (set up via User Role Editor) to access the admin dashboard. ...
PenguinBegins's user avatar
0 votes
1 answer
410 views

How to break line / add <br> to ADMIN menu

Disclaimer: This question is not about "frontend" nav menu I am looking for a way how to break line in a menu item label in WP admin sidebar menu, sidereason is that the custom post type ...
jave.web's user avatar
  • 477
0 votes
1 answer
145 views

How to hide metaboxes in WordPress Admin on WooCommerce "Add Product" page - Remove side sortables for a specific user role

How do I hide certain metaboxes in WordPress Admin screen options for specific user roles? For example, I allow the user role "Store Vendor" to access the WordPress admin to upload their ...
Andrew124's user avatar
0 votes
1 answer
223 views

Hide all Admin Notices and move on a separate page

I want to hide all 'admin_notices' from dashboard means everywhere. I've a separate Menu name "Admin Notice". I want to move all notices there so I can manage them separately by user roles. ...
Liton Arefin's user avatar
0 votes
0 answers
26 views

Google Web Core Vitals - management, how to in wordpress and advice

I maintain several small websites and know my CSS and HTML. However, when it comes to javascript and server side optimisation, I have no idea. I was advised to ask my question here where I initially ...
Fliss's user avatar
  • 3
2 votes
0 answers
748 views

Error thrown. Cannot create references to/from string offsets

I'm trying to access the /wp-admin on my old blog post, but when I try to get to the login page I'm getting an alert that reads as follows: "Error thrown. Cannot create references to/from string ...
Alex Canelos's user avatar
1 vote
0 answers
346 views

wp-login behind nginx reverse-proxy inaccessible — bad redirect?

i’ve setup WordPress on a local nginx backend instance. the backend url is https://wp.example.com:12345/ it’s served through a frontend, nginx reverse proxy, exposed at a subdir. the frontend url is ...
huna's user avatar
  • 11
0 votes
1 answer
67 views

Admin back end - get URL of file using file browser

I would like to be able to get the URL of a html file that has been uploaded to a folder via FTP. So if I go into a post in the admin back end of WordPress, I would like there to be a custom field ...
Adam Gillies's user avatar
0 votes
1 answer
67 views

How to display my comment count in the wordpress admin bar?

Ok, so when I'm logged in, the above admin bar show's zero. Even though I did wrote 5 comments: Is there a code to add in fuctions.php to display the correct number of comments? Thanks.
robert0's user avatar
  • 203
1 vote
1 answer
317 views

Custom Post Type - Support "author" only for admins

I would like to set up a Custom Post Type which supports the author feature only for admins. Other user roles may as well create, see and edit their own posts, but the admins should be able to switch ...
Álvaro Franz's user avatar
0 votes
0 answers
248 views

Add two button to page and post admin to redirect to : add new & list of (posts - pages) just after saving post or page

I would like to add some extra button inside post and admin page creating plugin or adding hook inside functions.php. The image below resume all I want : (1) depending to we are on wordpress post or ...
Rak Arthus's user avatar
0 votes
1 answer
314 views

Passing state from child component to parent component in a Gutenberg Sidebar

I'm setting up an sidebar that include controls for some custom meta fields. I've got a parent functional component that include some inner child components, and I'd like to toggle (show/hide) ...
Paolo Sacchetti's user avatar
1 vote
0 answers
71 views

On update or create post redirect to current post position in list

Is there a way to redirect the user to the current location in the list of the post he has updated? We have a CPT with more than 200 items and there are editors who need to review all items after a ...
Wouter's user avatar
  • 11
1 vote
0 answers
145 views

Four columns in the wp_users table

I am writing custom code to allow users of my site delete their own accounts from the front-end (i.e., they do not have to logon to the WordPress admin area to perform certain actions, but rather I ...
Greeso's user avatar
  • 2,086
8 votes
2 answers
6k views

How can I send data to admin-ajax via JS Fetch?

I'm trying to implement filter system in my website. I decided to make it via js. I created fetch function let filters = document.querySelectorAll('.filters-item'); let pageUrl = wp.page_url; const ...
MMPL1's user avatar
  • 207
0 votes
0 answers
162 views

Is there any filter to add a custom attribute to the <body> tag in admin panel?

I don't need to add a class to the body tag. I need to add the ng-app attribute to the body tag. It is needed on the body tag because I need to use multiple controllers in different metaboxes of post ...
Jasmeet Singh's user avatar
0 votes
1 answer
76 views

WordPress has been updated! Before we send you on your way, we have to update your database to the newest version

whenever I attempt to access our production admin panel I get the message below. "Database Update Required WordPress has been updated! Before we send you on your way, we have to update your ...
Chris o's user avatar
  • 11
0 votes
2 answers
216 views

Add term of current custom post type to admin body class using admin_body_class

I am trying to add the current custom post type term to the body class of my WordPress admin page. So when I am viewing an existing custom post type that has been assigned a term it will add that ...
moorewebx's user avatar
0 votes
1 answer
33 views

Admin only taxonomies?

I'm building a marketplace site using woocommerce, wcvendors pro, buddyboss marketplace and buddypress. I'd like for the admin to have an admin-only taxonomy that she can use to tag/categorise certain ...
Austen Osborne's user avatar
0 votes
3 answers
623 views

admin panel - How to remove "delete" button from category editing page

i want to disable, hide or remove delete buttons from category page I tried editing functions.php with no luck: add_action('admin_head', 'hide_category_buttons'); function hide_category_buttons() { ...
Antanas Ignas's user avatar
0 votes
1 answer
19 views

I can't enter the control panel of my wordpress site after channing the URL to https://

I have a big problem and I am somewhat panicking about this one. My website didn't have https enabled so i went to the settings panel, changed the website link to https://andthewebsitesname. Now when ...
Squary94's user avatar
  • 101
1 vote
0 answers
178 views

Filter Categories in meta box for CPTs

Working with a custom post type in Wordpress, I would like to use the categories. So I added the categories to the cpt. No problems here. But, when adding or editing cpt items, I would like to filter ...
redcenter's user avatar
  • 111
0 votes
0 answers
380 views

Show all admin menus in a table

I Made a menu to remove admin menus for people that are not allowed to see it so they don't make changes to the site. But I can't get submenus to display only the main menu's this is the code: &...
Bent's user avatar
  • 1
1 vote
1 answer
178 views

I want to disable login of admin (/wp-admin) with email and make it accessible only with username

I want to do it as a security precaution. I've already taken other actions. But I want to be able to login only with my admin username. Is there a way to do that or even a plugin?
Kostas Gogas's user avatar

1
2
3 4 5
35