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
52 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
86 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
16 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
71 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
1k 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 ...
0
votes
0answers
25 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
33 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
41 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
19 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
299 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
92 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
133 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
43 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
95 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 ...
1
vote
0answers
28 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
133 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
22 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
24 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
18 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
98 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 ...
0
votes
0answers
46 views

Wordpress Admin Panel Left Sidebar No showing on Post create page

These are two different WordPress sites on post create pages. The first site has left the admin panel. The second admin panel does not have a left sidebar. How can I add the left sidebar on the second ...
1
vote
1answer
90 views

Trouble with wp_reset_postdata() in Admin Panel

I'm hooking into 'edit_form_after_editor' add_action('edit_form_after_editor', 'make_the_button_to_generate_a_report_number'); function make_the_button_to_generate_a_report_number($post) { Check that ...
1
vote
0answers
24 views

Sort custom meta column by other meta value

I have a post type named "event" and I store two meta values for these posts: _start_time and _start_time_unix. The first one contains a string representation of a date and the other one a ...
0
votes
1answer
30 views

Admin users not able to see network menus

I am new to wordpress, and I am an admin in my site. But I can't see the network menu, SuperAdmins can. Any idea why? I am using the user role editor plugin to manage roles. But I haven;t changed any ...
0
votes
1answer
39 views

Adding prefix to WordPress database tables breaks admin capabilities?

I have attempted a few different ways (manually, using Brozzme's DB Prefix Tools & Addons plugin) to add a prefix to an older WP database (right now table names look like posts instead of wp_posts ...
1
vote
2answers
35 views

One button on admin page works but not two

I am workin on a plugin (for use on my own site). I recently added a button to the admin page that generates some text, and it works fine. This is what I use (pilfered from examples): if (!...
0
votes
0answers
17 views

wordpress email checker on domain

I need a email verification when a users/admin logs into wp-admin. So it checks if the domain is @gmail.com and when is not i have functions is this possible? I made it with id checker but is was not ...
0
votes
1answer
67 views

Change page name in admin list

One of my customer has many pages that have the same titles, although their content is different. They would like to be able to give them "admin titles" in order to differentiate them in the ...
0
votes
1answer
12 views

How To Create Wordpress Dashboard Item

I have just started in building Wordpress sites as a side-project. Can anyone please help me with something that I cannot figure out? How do I create a "section" like Case Studies in the ...
1
vote
0answers
148 views

Missing 'Page Attributes' in page edit

Im missing Page Attributes from page edit screen. I have searched and not found any solution. Anybody with some ideas?
0
votes
0answers
14 views

problem connecting to the administrator

Good evening, I put my wordpress site online but I cannot access my administrator area. When I put my username and password I have this error: Remarque : Constante DRICUB_DRIVING_SCHOOL_IMG_URL déjà ...
0
votes
1answer
472 views

WordPress is creating nonce as a logged in user but verifying it incorrectly

I'm having trouble validating a nonce created with wp_create_nonce() inside a hidden input with the name nonce in an html form: <input type="hidden" name="nonce" value="<...
0
votes
0answers
56 views

Hook into the Admin Dashboard and redirect users

So I have a configuration that a API returns a ?code=..... to the URL inside my admin dashboard www.test.com/wp-admin. Is there a hook inside the admin where I can copy the admin url www.test.com/wp-...
1
vote
1answer
91 views

Can I mass change all admin emails for a multisite instance?

I am managing a multi-site instance of Wp with 300 sites and so I am trying to see if this can be done automatically. I know individually I can go to each site and change the admin email value in the ...
0
votes
1answer
193 views

How to get custom page template being edited in gutenberg editor

I want to know custom page template name (the one chosen in page attributes - template) in PHP, before page opens in order to enqueue additional scripts according to chosen template. I know how to get ...
0
votes
1answer
151 views

Can I create a separate admin section for my plugin?

Is it against the WordPress guidelines to create a separate Administration section for my plugin? For example, Elementor opens a separate page for building pages but I'd like to create a similar ...
0
votes
1answer
3k views

Wordpress Hacked 5.5 admin-ajax.php [closed]

I am using the latest version (5.5) of WordPress themes and plugins. I also have 2 custom-written add-ons. I tried all the protection methods I know of. wp-config.php and wp-admin url and admin nick ...
7
votes
1answer
2k views

Wordpress 5.5 - ReferenceError: commonL10n is not defined error

I just upgraded to the latest version of wordpress 5.5 and my theme stopped working. The categories are no longer automatically selected when I click the button. https://prnt.sc/u030gj
0
votes
1answer
39 views

Unable to edit my "Administration Email Address" after mySQL editing?

WordPress won't let me change my administration email address. I've checked the spam folder and what's more I even changed the email in the mySQL and it still shows up... Any idea how to kill off this ...
1
vote
1answer
24 views

What determines whether admin toolbar is shown to a logged-in user?

By default, Wordpress shows admin toolbar to Administrator, Editor, or Author but not to Subscriber or unauthenticated visitors. What determines whether admin toolbar is shown a logged-in user? I am ...
0
votes
0answers
21 views

Adding a WordPress Admin Dashboard to my local wordpress site

What my team and I are doing is working on a Wordpress site, but we need to set up permissions to use certain features. We put a lot of work into it and we don't want it to go to waste, so is there a ...
0
votes
0answers
21 views

Admin user column sort by numeric meta key

I try to sort a custom user field (team_user_id), I have all data but I can’t sort by numeric. updated code add_filter('manage_users_columns', [$this, 'custom_id_column']); add_filter('...
1
vote
0answers
16 views

Custom Fields box in the post editor: Replace textareas with input elements

I am developing a theme for a specicific use case which uses custom fields. To emphasize that the values are always single line, I would like to replace the textareas with input fields. What is a good ...
0
votes
1answer
36 views

Headers already sent warning in Admin source is media.php 3140

After years of running fine, I am suddenly getting this dreaded message after updating to 5.42. However it only happens in the Admin: Warning: strpos() expects parameter 1 to be string, array given in ...
0
votes
0answers
17 views

Accessing wordpress tool in local MAMP Site

I created a Wordpress website locally using MAMP. For weeks I was able to get to my website and continue creating it by clicking "start servers" and it would open the MAMP page and I would ...
0
votes
1answer
182 views

Need to remove the admin menu item from a be theme in wordpress

I need to remove the few admin menus of BeTheme from admin wordpress menu. Although this code works (when added to functions.php) for usual wordpress admin menus add_action( 'admin_menu', '...

1
2
3 4 5
34