Questions tagged [wp-admin]

Tools for site administration located in the `wp-admin` directory of a WordPress site.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Admin access to secondary site user_can_access_admin_page losing login

This issue is related to an 'alternative' setup using 2 wordpress sites but 1 users table. The initial setup is summarised below: 2 separate WP instances on same domain aaa.localtest.me + bbb....
JI-Web's user avatar
  • 101
0 votes
0 answers
14 views

Send email to customer with order status "pending payment"

I am trying to send a custom email after 1h to someone who tries to place an order in my store but did not make a successful payment. The code I am using below, but for some reason no email is being ...
mad2kx's user avatar
  • 162
1 vote
1 answer
28 views

Trouble with WordPress Settings API: Form Submits When Fields Called Directly, Fails When Using Callbacks

0 I'm working on a WordPress plugin and facing an issue with the Settings API. I have a settings page with two forms. The first form uses do_settings_sections() to call fields from a public function (...
user2765920's user avatar
0 votes
0 answers
21 views

Products are displayed only in the admin area

I have a code: $products_query_params = array( 'post_type' => 'product', 'product_cat' => 18, ); return new WP_Query($products_query_params); I need it to get products. But it works ...
Wembley's user avatar
0 votes
1 answer
16 views

Form submission issue in wordpress admin (custom plugin) using $_GET for searching & filtering

I have a custom plugin that was built by a developer which was working fine until last week Friday. The plugin is running on wordpress.com platform rather than a stand alone Wordpress.org CMS. An ...
user2274299's user avatar
0 votes
0 answers
12 views

My website freezes for one minute every time I publish or update a post

Every time I publish a new post or update an existing one, my website freezes for around one minute, although the post is updated shortly after I click the update button in the WordPress admin ...
Oren Harhel's user avatar
0 votes
0 answers
13 views

Fresh Install - WP6 - Sorry, you are not allowed to access this page

I was able to use the if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on'; commands to get around the too many redirects error. Now, I can see the site, however, ...
Anubis Blue's user avatar
0 votes
1 answer
121 views

Error 403 on wp-admin - Redirection to upgrade.php

One of my customers reported me an error on its website. we loaded a backup because it is a production site, however, since then, we no longer have access to wp-admin. The message I get when I go to /...
sorrow's user avatar
  • 3
1 vote
1 answer
22 views

Wildcard multisite wp-admin url wrongfully redirected

So, this is the situation. I have a working top level domain site (https://example.com) and I set up a wild card subdomain (*.example.com) and multisite settings in WordPress. It works as expected, as ...
Sven V's user avatar
  • 11
0 votes
1 answer
44 views

redirect wp-admin/profile.php to members/your-profile

Is there any way to redirect /wp-admin/profile.php to /members/your-profile I do not want members to go to the default wp-admin page but instead go to the custom members page. I tried a redirect via a ...
Ian's user avatar
  • 1
0 votes
1 answer
22 views

Administrator user cannot access dashboard after localwp import

This is the 2nd time this has happened in the past few weeks so I thought I would try and get some ideas on how to overcome. There are a few others in the localwp community that have had the same ...
php-b-grader's user avatar
2 votes
0 answers
39 views

How can I add classes to the Gutenberg iframe (editor-canvas) body tag? Added in WP 6.2(?)

I believe Gutenberg content was iframed in WP 6.2 if all blocks are v3. I have used a function like below to add very important custom classes to my admin body tags which in turn alters how the ...
lepardman's user avatar
  • 183
0 votes
0 answers
16 views

Update Cache on Save Instead of Clearing It?

I'm working on getting my wp-admin faster and is thinking about how I can get those slow get_posts() with a lot of meta queries faster. I have already made som progress with replacing a lof of LEFT ...
Peter Westerlund's user avatar
0 votes
1 answer
20 views

Show shipping class in admin product list

I'm looking for a way to show the Shipping Class of a product in the product admin overview to be able to quickly check if the right shipping class was selected for a product. Can you help?
Helmi's user avatar
  • 118
0 votes
1 answer
22 views

WP Admin Bar no longer appears in Dashboard

The admin bar no longer appears in the dashboard. I have looked through the child theme and there is no code related to the admin bar. The site runs Flatsome (latest theme version) + custom child ...
Alexnl's user avatar
  • 307
0 votes
0 answers
20 views

WordPress Responsive Custom Control WP Customizer

I'm developing a WordPress theme and I searched for days without finding anything. I have a custom control in WP Customizer and I want that it can save data responsive for desktop, tablet and mobile. ...
Stefano 's user avatar
0 votes
2 answers
22 views

Can no longer access Admin panel

Suddenly, I cannot get into my Admin panel. When I enter the URL, it will only bring up the home page. Any suggestions? https://www.smokymountainsanytime.com/wp-admin/
J. Payne's user avatar
0 votes
0 answers
19 views

redirect logged users to custom front-end insetad of wp-admin

I have this three functions in my custom plugin. I have created a custom front-end and I'm using an SSO plugin that will get the registered data from usermeta table to pass them to magento if an user ...
ICTDEV's user avatar
  • 113
0 votes
0 answers
26 views

Unable to get the correct URL using get_the_post_thumbnail_url() in wp-admin

I've added some custom fields to a rest route. I want to retrive the post thumbnail for my CPT and I'm using this code: This is the code I'm using to add the post meta to the CPT after an image is ...
ICTDEV's user avatar
  • 113
0 votes
1 answer
44 views

Wordpress change role from administrator to author by itself (automatically)

do anybody know this kind of phenomenon? I do not have any user managing plugins installed in my WP, but after some interaction e.g. editing pages or creating postings (its not matter) WP changes for ...
RestAPPDev's user avatar
0 votes
0 answers
6 views

Display SKUs in admin order list for new HPOS

I used to have code to display column with order SKUs in admin order list page. After introducing WooCommerce HPOS I changed the hooks accordingly (because of admin list page change) but it looks like ...
Vlado's user avatar
  • 113
1 vote
1 answer
17 views

login_enqueue_scripts changes are not reflecting

I tried adding a custom CSS for my wp-login page and login forms within my website using the login_enqueue_scripts hook. My issue is that my changes don't initially reflect on the front end. But the ...
Nalin Vyas's user avatar
0 votes
0 answers
16 views

Post type gives 404 unless logged in

My custom post type gives a 404 (slug translated by WMPL), unless I login to the admin. Then it works again for several days (it seems), just to become 404 again. Login in again (without doining ...
Base's user avatar
  • 1
0 votes
1 answer
16 views

What is the best way to ignore wordpress administration using add_filter($title) also when Ajax request

Inside a custom plugin to translate Posts contents I use add_filter() and plugins_loaded() hook to replace all $title, $excerpt, $content, $postmeta. As the documentation says wp Ajax use admin_ajax....
imagIne's user avatar
  • 41
0 votes
0 answers
20 views

unable to find the document body in user-edit admin using javascript or CSS

I am pretty new to using js on wp and I have this pretty tame script that is supposed to find the element and replace it using textContent. I also am using a simple CSS element that has the same ...
Jocelyn Hunter's user avatar
0 votes
0 answers
22 views

admin_enqueue_scripts not load custom scripts from cdn

I have this code in a plugin class DashboardCustomizer { public function __construct() { add_action( 'admin_enquque_scripts', array( $this, 'load_custom_scripts' ) ); } /* ...
ICTDEV's user avatar
  • 113
0 votes
1 answer
51 views

Import bootstrap 5 and bootstrap icons in wp-admin backend

I want to fully customize the wp-admin interface. I'm creating some plugins to remove the default menu pages and to add my custom pages, and seems working fine.Anyway I need to implement bootstrap 5 ...
ICTDEV's user avatar
  • 113
0 votes
0 answers
18 views

difference between code for admin, user facing (css, js)

So I have two pages, user-edit.php in the admin and a page for members to edit their own profiles. There is a group of section on both that has the same coding, the same css id's, the same classes, ...
Jocelyn Hunter's user avatar
0 votes
1 answer
14 views

WP dashboard messed up

It seems like CSS issue, but it is not persistent, sometimes works, sometimes not, however the site itself is working just fine, but I hardly can use the dashboard. This is not a duplicate, because ...
Botond Vajna's user avatar
0 votes
1 answer
31 views

I'm unable to remove the code that I used to restrict access to the profile page for subscribers

Even after I removed the code, I am still getting the error message "Sorry, you are not allowed to access this page." please help me to fix this function remove_read_wpse_93843(){ $...
Roma VV's user avatar
0 votes
0 answers
28 views

How do I output translated text strings on edit screens

I want to output a localized text string above the post/page listing table (edit.php). Everything seems to work except that the string will only be in English (original string, not the translated one)....
lepardman's user avatar
  • 183
0 votes
0 answers
10 views

Wordpress Theme file editor - error with sleep() php function

I'm doing some tests by modifying my .php files directly from the wordpress theme editing interface ( /wp-admin/theme-editor.php ). (to avoid lengthy deployment pipelines) However, as soon as I add ...
Vincent Rocher's user avatar
0 votes
1 answer
114 views

How rename wp-content and wp-admin folders correctly

I've readed that using some constant defined into the wp-config.php file is possible to use a custom folder instead of the default wp-content. The same thing if I've understood can be applied also to ...
ICTDEV's user avatar
  • 113
0 votes
0 answers
29 views

User can see and enter the Wordpress Admin without login

I have some users reporting to me that they can see the admin bar and also they can enter the admin panel of the website without login in. I'm not sure how this is possible and I'm trying to find a ...
Paulo Brás's user avatar
0 votes
0 answers
16 views

When typing, comment bar opens all the time in wp admin

Is there any way to turn it off with a snippet? I found a lot of posts about this but none of the solutions removes the comment bubble from my top bar. I can't write anything anywhere because it keeps ...
Jessica's user avatar
0 votes
1 answer
20 views

Is there a way to override only a portion of the function print_media_templates defined in wp-includes\media-template.php?

I'd just like to -safely- change the visual presentation on the Attachments pop-up window, ie. move some of the main DIVs around. But it seems like the only hook is to the entire function which is ...
jchwebdev's user avatar
  • 765
0 votes
0 answers
49 views

Why am I getting the login screen in wp-admin->Appearance->Customize?

I have a fresh install of WP multisite. When I go to wp-admin->Appearance->Customize I keep getting this login screen. It won't help if I enter username and password, it just says "please ...
Steven's user avatar
  • 2,570
0 votes
1 answer
64 views

Mismatch between posts count and actual list in admin posts page

I have an issue in the *Posts* page in the admin area; more specifically, I see that there is a mismatch between the posts count and the actual list shown, when the posts are filtered by category: the ...
DamianFox's user avatar
0 votes
1 answer
163 views

Blocking admin-ajax.php from outside domain

I could not find a definitive answer on this so I figured I would ask here. I am using Elelmentor Pro forms to make a contact form, but it is getting form spam bot submissions. I have reCaptcha ...
pathfinder's user avatar
1 vote
1 answer
28 views

The sidebar in wp-admin dashboard disappears when viewed on mobile screens in WordPress

I have created a user role called "Customers" through the "Ultimate Member" plugin which has access to only the "Pages", and "Profile" sections in the wp-admin ...
Programming Geek's user avatar
-1 votes
1 answer
58 views

Show only those pages that are created by the specific logged in user in WordPress

In WordPress, I created a new User role called "Customers" to only see the pages in the wp-admin Dashboard that only that role has created and not all the pages that are created by other ...
Programming Geek's user avatar
2 votes
0 answers
48 views

How to show always the top bar when editing

While viewing a page, or editing a theme, the topbar disappears and I can't find a way to make it always visible. Is there a way to always show it?
Jess-e's user avatar
  • 121
0 votes
1 answer
37 views

wp-admin is opening but the site isn't opening

I had changed my port from 80 to 8080 in xampp server. After heading to localhost:8080/mysite/wp-admin/ I am able to see my wordpress dashboard. From there, when I click on visit site, it gives my '...
Pratham Kshirsagar's user avatar
0 votes
0 answers
103 views

How can I point headless wordpress admin panel links to proper urls without using frameworks?

I have a headless wordpress website. The frontend, built using React, without headless WP frameworks, is in the public_html directory. The wordpress backend is in the public_html/back directory. ...
budgiebeaks's user avatar
1 vote
1 answer
54 views

How to set up a private custom post type that is accessible in the administrative dashboard?

I'm not entirely sure of the best way to approach the requirement so I'm hoping someone who has more experience with it will be able to share some gems. I've set up a custom post type with the ...
Motivated's user avatar
  • 205
0 votes
0 answers
121 views

Impossible to access the site administration

I have the following issue in the WordPress: When I connect with the administrator account, the page mysite.com/wp-admin/ gives the error message: You do not have sufficient permissions to access this ...
DataSmarter's user avatar
0 votes
0 answers
51 views

WordPress dashboard: The requested URL was not found on this server

I've just watched this video: Create and Host a Wordpress Website on AWS EC2 with your own domain name! - YouTube I followed every step other then the one adding your own domain (because I don't have ...
bighunterson's user avatar
0 votes
1 answer
128 views

contact form 7 form not working in admin panel

I am using cf7 form in wordpress admin panel: On front end its working fine but I need in admin panel. I have tried below code in functions.php but it did not work: add_filter( 'wpcf7_load_js', '...
Ravinder singh's user avatar
0 votes
0 answers
483 views

403 forbidden error in the admin panel as well as on the admin-ajax.php file

I am using WordPress, My website was working perfectly until I changed the file permission. admin-ajax.php is showing 403 forbidden error and the rest of the file is working. due to a 403 error, My ...
Naren Verma's user avatar
1 vote
1 answer
31 views

Display Custom Text if date_picker date is expired

I am having a really hard time with these 2 small issues, I hope you will help me with some code. I am using Advanced custom fields pro wordpress plugin. I have a date picker field name "...
Babar Ali's user avatar

1
2 3 4 5
46