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
0answers
16 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 ...
0
votes
0answers
19 views

WC Fix Attributes - 'Add New' Not Searchable/Delayed

Installed the WC Fix Attributes plugin Version 1.0 | By Tofandel as found here: Slow Loading Attribute Select - WooCommerce Backend Works a charm and really speeds up searching existing attributes 10 ...
0
votes
1answer
22 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....
1
vote
1answer
30 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 ...
0
votes
0answers
17 views

New button in admin edit

I already added a new button in admin edit post but is in button list in that dropdown But I want to add that button in header Is there any chance to do that? The code for first solution is: ( ...
0
votes
0answers
16 views

Woocommerce display orders with products from specific categories to specific admins

I am new at stackoverflow. I have a question about wordpress. I am building a wordpress site for some cinemas with movies. Each cinema is a product category. I want enable an admin cinema1 which will ...
0
votes
0answers
18 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 ...
0
votes
0answers
36 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 ...
0
votes
0answers
14 views

How to saving a file to Media Libary by code

I'm building a plugin that works only in admin. I've a page where the user choose some parameters and the script get data from posts and posts meta then it generate a pdf file and then I want to save ...
0
votes
0answers
17 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 ...
0
votes
1answer
50 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 &...
0
votes
0answers
15 views

400 bad request in admin-ajax.php file

(function ($) { $(document).ready(function () { $(document).on('submit', '[data-js-form="filter"]', function (e) { e.preventDefault(); var data = $(this)....
0
votes
1answer
21 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 ...
1
vote
0answers
16 views

How to customize a regular user's page

I am new to wordpress. At first I thought the "customizer" is just for newbies who need a WYSIWYG page editor and I should be able to change any setting without using the customizer. Later, ...
0
votes
1answer
27 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 ...
0
votes
1answer
65 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( '...
0
votes
1answer
54 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('...
0
votes
0answers
19 views

Wordpress Admin Bar Shows for all Viewers

the Wordpress admin bar login on my website thelitunderground.com is showing for all users. I would like to remove it. I've been trying some codes from other threads to no avail. Help? Thanks!!! Using ...
0
votes
1answer
21 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 ...
0
votes
0answers
21 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 ...
0
votes
1answer
106 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 ...
0
votes
2answers
231 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 ...
0
votes
0answers
18 views

How to create a single admin_notice that can be dismissed (and stays gone)?

I found this tutorial thinking it might do the trick. So I created the following files and placed in a /notice/ subfolder of the plugin: dismissable.php update-notice.php update-option.php /js/...
1
vote
0answers
12 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. ...
0
votes
1answer
112 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 ...
0
votes
1answer
46 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 ...
0
votes
1answer
26 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. ...
0
votes
0answers
17 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 ...
1
vote
0answers
116 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 ...
1
vote
0answers
59 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 ...
0
votes
0answers
10 views

Get admin css with javascript?

I need to take the "wpadminbar" color and put it as a background color for the plugin header. If the admin changes the color scheme the header color on my plugin also changes. Of course I ...
0
votes
0answers
16 views

Could be this a proper way to add script inline content to pages while in wordpress admin?

I used to include my inline scripts in the content of my pages, but many articles suggest to avoid that practice and rather include my inline scripts with functions like wp_localize_script(), or ...
0
votes
0answers
33 views

Unable to view theme options

I am restructuring how my WordPress files are organized in order to use Composer along with tracking the theme and child theme in a Github repository. I'm following this guidance for the most part, ...
0
votes
0answers
15 views

Custom Post type editing: where has my publish button disappeared?

I run a Wordpress website with a lot of Custom post types, where I customized the interface so that contributors can easily do what they need. When editing a given post, widgets appear on the second ...
0
votes
1answer
60 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 ...
0
votes
0answers
55 views

send comment notification message to website admin and post Author

In my wordpress installation i have in discussion settings > Anyone posts a comment + A comment is held for moderation active. On my site all users that can write posts are set as contributors. I ...
0
votes
1answer
22 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.
0
votes
0answers
10 views

What is the best practice for setting CSS color picker styles from a plugin admin page?

I'm developing a plugin and I have a few CSS styles that I want to set based on selections on the plugin admin page. For instance, I have a color picker and based on the selected color I need to ...
0
votes
0answers
13 views

Wordpress 5.5 site admin email verification

I got popup notification about administrator email notification but when I logged from editor account. Is it normal that an editor can update admin email isn't it?
0
votes
0answers
36 views

Disable Ajax features to trash, approve or spam comments in WordPress admin

I need to disable ajax features in WordPress admin panel. My website has a lot of visitors which participate and interact via comments, this kind of behavior exhausts the admin-ajax.php and uses too ...
0
votes
1answer
33 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 ...
0
votes
0answers
36 views

filter custom posts by custom field in WordPress admin area

I have a custom post type called: course_payment In my admin I have created couple of columns One of them pulls another Array of post types ("course") which have a connection to my post type ...
0
votes
0answers
42 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 ...
0
votes
1answer
75 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) ...
1
vote
0answers
14 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 ...
0
votes
0answers
14 views

How to achive video upload and play for an ott platform?

I have a wordpress site in that i want to upload video files and plays it to the user those are subscribed to our site the subscription method is being already implemented. The content is published as ...
0
votes
0answers
18 views

Troubleshoot Sortable xProfile Column in Admin Users Screen

I’m trying to add a sortable Country column to the Users screen for one of my BuddyPress xProfile fields. My BuddyPress field is a select2 dropdown, where my members select their country from an array ...
1
vote
0answers
62 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 ...
1
vote
1answer
860 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 ...
0
votes
0answers
9 views

Sorting CPT according to hierarchy in admin panel

I have problem with sorting my custom post type in admin panel. Is it possible to leave children position below parent? I don't know if this is clear, but below I made examples trees. My actual ...

1
2 3 4 5
34