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
1answer
16 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
20 views

Spoof the admin panel on the client side?

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 ...
-1
votes
0answers
25 views

Add Custom checkbox Column to Users Admin in Wordpress

Here's my code, when I check the checkbox, I want to save it automatically (the checkbox has the value of "yes" and "no") function new_contact_methods( $contactmethods ) { $...
0
votes
1answer
101 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
64 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
14 views

How to resolve wordpress admin panel error saying account does not exist? [closed]

My site had got hacked and I had got a freelance developer to fix it as my hosting account was suspended due to it and the site was not showing online. The developer said he will migrate to a fresh ...
0
votes
0answers
17 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
7 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
49 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
22 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
15 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
15 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
53 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
27 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
14 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
25 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
9 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
56 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
31 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
14 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
12 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
16 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
29 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
34 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
31 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
58 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
12 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
8 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
40 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 ...
0
votes
1answer
168 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
6 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 ...
0
votes
0answers
16 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 ...
0
votes
1answer
28 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 ...
0
votes
2answers
23 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 ...
0
votes
1answer
16 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 ...
0
votes
2answers
159 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() { ...
0
votes
1answer
14 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 ...
1
vote
0answers
57 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 ...
0
votes
0answers
52 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: &...
1
vote
1answer
23 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?
1
vote
1answer
42 views

WordPress Multisite dashboards redirect to homepage

I hope you can help me. I've got a WordPress Multisite install, and have a few subsides. For the main site, when I try to open the dashboard, it opens fine. But for all subsides, when I try to open ...
0
votes
0answers
21 views

How to make custom column Admin>Users sortable?

I have a few hundred users (customers) to delete, specifically those that registered before 2019 and have zero orders. I've added the following code to my child theme functions file in order to add a ...
0
votes
1answer
104 views

How can all E-mails be sent with BCC copy to Admin?

I'm translating WordPress page into seven different languages. Have around 70 plugins active and working, no worries. Subscriptions, shop, pre-orders you name it. Getting there with translations, ...
0
votes
0answers
18 views

Admin submenu hidden on certain submenu pages

I've created a custom post type from a plugin. Then I added several submenu pages to its submenu list, like this: //categories add_submenu_page('Parent title', 'category_redirect', 'Categories', '...
0
votes
1answer
21 views

How do I disable the discussion notification emails to us when a comment is “approved” and when an adiministrator replies?

We have all comment notifications being emailed into our ticketing system (Freshdesk) and it's getting a bit muddy because of the redundant notifications. What is currently happening: A site visitor ...
0
votes
1answer
13 views

How to exclude some post from admin edit screen

I want to restrict which post appears in a user edit screen based on its role. The roles are mapped to category. I am trying to add some conditions at the time posts are retrieved so that only posts ...
0
votes
1answer
53 views

Upload error on localhost (at minimum, not yet tested online)

uploading a picture on localhost I keep receiving following error: Post-processing of the image failed likely because the server is busy or does not have enough resources. stopping any upload, even ...

1
2 3 4 5
34