Questions tagged [wp-admin]

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

614 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
2k views

How to allow users login to WP from external domain and make REST requests

Basically what i want to do is: Use Wordpress as a login system and data storage for web-application on another domain. Make users able to register and perform REST calls from the application. Let ...
5
votes
1answer
3k views

Change label of title field for posts in the backend

I am trying to add some HTML to the title label in the backend of WordPress. Attempt 1: I am using the following (simplified) function: function change_post_titles() { global $post, $title, $...
4
votes
1answer
4k views

AJAX handler throws 400 (Bad request) - why?

I am trying to apply a "Load more posts" function to a post loop, but I am dealing with a 400 Bad request, when admin-ajax.php is referred to. The reference I used is this - https://rudrastyh.com/...
4
votes
1answer
663 views

Wordpress admin notice in plugin function

i have sample wordpress plugin class. Im hooking woocommerce woocommerce_saved_order_items and i want create a admin notice. Add action from __construct works, but when i want create a notice in hook ...
4
votes
1answer
1k views

using slug instead of ID in admin edit post url

In Admin, is there any way to use a slug instead of a post ID# within the URL that takes you to a post's edit screen. So instead of: http://example.com/wp-admin/post.php?post=5562&action=edit ...
4
votes
2answers
1k views

How to remove “admin.php?page=” from wp-admin using .htaccess?

I'm looking to use .htaccess to rewrite admin page URLs. I'd like to change it from: http://example.com/wp-admin/admin.php?page=whatever&id=5&var=10 to http://example.com/wp-admin/whatever?...
3
votes
1answer
1k views

How to Use JSON With AJAX?

I've defined a PHP callback function to handle the communication between server-side and client-side: function json_render_modal_body() { check_ajax_referer( THEME_PREFIX . '-modals', 'nonce' ); ...
3
votes
0answers
50 views

Render Selected Categories in Admin Edit Post Screen differently

Selected Categories for a post in the admin screen are rendered by: // Put checked cats on top $output .= call_user_func_array( array( $walker, 'walk' ), array( $checked_categories, 0, $args ) ); ...
3
votes
0answers
415 views

wp-admin remove the subfolder URL

I have a problem with WP. I have a website with this URL: http://sub.domain.com/subfolder My Website works fine, but when I connect on wp-admin, the subfolder URL disappeared (http://sub.domain.com/wp-...
3
votes
0answers
230 views

Image editing: “Edit Original” and “Replace” buttons missing on old posts

I have a site I've recently migrated to a new server. Everything is mostly looking okay, except on existing posts: when we go back to edit a post, and edit media attachments within it, the "Edit ...
3
votes
2answers
4k views

Plugin: How to make links in admin page open up inside of the admin panel

In writing my plugin, I have added my menus and submenus to the admin page. The pages load and function as intended. What I am trying to do is create some links inside of these pages that will pass ...
2
votes
0answers
225 views

SSL Partially breaking admin panel and elementor

I have recently installed a SSL certificate on my hosting server and I switched WordPress to SSL. The website is running normally, with no mixed content errors and everything is loading as it should. ...
2
votes
1answer
199 views

Too many datadabse connections - upper ceiling mysql

We run a high traffic blog with around 500 real-time users and 10000 posts. We are hosted by self on VPS - 16gb, 4 core with separate mysql DB server - 4gb, 2 core; both SSD. No problem with hosting ...
2
votes
1answer
152 views

password protected post policy

I'm looking for a way to add policy about POST password. Password specifications : 12 characters in length, 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character. Is ...
2
votes
0answers
288 views

Custom taxonomy sort by term meta in admin columns

I want sorting custom taxonomy admin table with terms by terms meta. This meta is sort index of terms. But I dont know how can do it. I use add_filter('manage_edit-{}_sortable_columns') but sorting ...
2
votes
0answers
121 views

CDN + WP Admin Query - .htaccess redirection

Say I have a website at https://www.example.com and I am using a CDN. Now if I want the CDN URL to be https://www.example.com/assets/... and not https://assets.example.com, then what should I do? Is ...
2
votes
0answers
155 views

Users Unable to Access Dashboard/Posts/Pages

I'm trying to set user roles in order for my users to access the wp-admin Dashboard section and post. I was able to create roles and give multiple users Shop Manager/ Editor roles. But when they login ...
2
votes
0answers
190 views

From 403 error to 500 internal server error

I'm trying to install wordpress on a shared hosting (1and1), it's been 3 days i'm struggling and i give up, i've installed wordpress many times on other servers with no problem, first time on (1and1) ...
2
votes
0answers
487 views

Admin wp_ajax hook returning 0

I've done some research but I can't seem to find the correct answer so I'm hoping someone can give me a hand. I'm attempting to use the wp_ajax hook in the admin section. The functionality should be ...
2
votes
0answers
128 views

Edit single attachment on click (WP-admin)

I've created a custom media manager for a CPT I've created. I have everything functioning properly except an edit function. I want to have an edit button for each attachment that gets added to the ...
2
votes
1answer
172 views

WP-Admin edit.php & post.php slowdown after import of 10k users

Situation: Clean wordpress install No plugins VPS server 5.2ghz / 4gb RAM (Default Directadmin) Import of 10k users Problem: WP-Admin edit.php and post.php take >4sec to load. A custom post type ...
2
votes
0answers
66 views

Why is there an intermediate redirect to https://public-url.org/wp-admin?

I have the SITE_DOMAIN set as foo.example.com, this has a SSL for *.example.com http://example.org, is the url for the frontpage, this works. There is no certificate for example.org. Now, when I ...
2
votes
1answer
377 views

Why does the My Site dropdown show only a single domain?

I ran a Network Update today from Network -> Update Network, and since then all the sites, and all the links to sites within my Admin area reference the same domain. The domain it uses is relative to ...
2
votes
1answer
511 views

Wordpress address URL keeps dropping the www

My Wordpress Address (URL) in general settings keeps losing the www from the URL - I type in http://www.domain.com and it saves and works fine. Next time I go in the address has changed to http://...
1
vote
1answer
14 views

How to change popular term checklist title when edit post?

I have a title_custom field in the article category. How can I show that field in place of the title in the category selection box when editing or adding posts? It's in the function ...
1
vote
1answer
27 views

Custom roles can't access to wp-admin

i'm trying to create a custom role, very similar to admin but without the capabilities to edit/delete plugins. Since i don't wont to use plugin for that i've edited the functions.php file adding ...
1
vote
0answers
34 views

Opening specific posts on WP takes lot of time and freezes the editor

I have this weird problem in the last couple of days where it takes ~5 minutes to completely open some posts on WordPress wp-admin dashboard. Please hear me out carefully. This is happening only with ...
1
vote
1answer
51 views

WordPress customizer Preview not loading

I'm creating a WordPress website, today I have tried to add some new features but I'm not able to add because customizer live preview is not loading I have done some steps Update all theme and plugin ...
1
vote
0answers
13 views

Placing a custom Control element in an existing block InspectorControls panel

I would like to place my existing custom control element into the core/heading component found here. I currently have my component in the Advanced Controls panel Illustration
1
vote
0answers
156 views

How to display a Ninja Form on the Wordpress admin pages

I am creating a Wordpress website where I would like to display a specific form on an admin page which has the ability to store form submissions. I have chosen Ninja forms, but I am open to other ...
1
vote
2answers
18 views

redirect to a dedicated sign in page

I am creating a plugin to redirect all sign in attempts to a dedicated page rather than using the builting wordpress page so i created this hook action for the admin_init with the highest priority ...
1
vote
0answers
19 views

What should happen when a WordPress Plugin is activated across the network (Network Wide Activation)

I'm used to WordPress, but something got my attention as described below: For WordPress Network Wide Plugin Activation: wouldn't it be efficient to have an UI to allow super admins to control how the ...
1
vote
0answers
32 views

wp-admin - 404 after custom login form

I create custom login form in my page with this code: add_filter('login_redirect', 'my_login_redirect', 10, 3); function my_login_redirect($redirect_to, $requested_redirect_to, $user) { if (...
1
vote
0answers
41 views

Custom roles showing HTML entities in title form field

I've created a few custom roles. I'm noticing that when editing a post in the Admin Area, any characters with HTML entities in the title form field are showing the HTML entity code, but only for users ...
1
vote
0answers
69 views

Classic editor throws 403 error based on post content

In an updated and unadorned WordPress installation, with only the Classic Editor plugin enabled, and the 2017 theme, I get a weird error. When I try to save a draft of a post containing this <...
1
vote
1answer
22 views

How to force field validation first, then its values saved durning edit profile?

I want to make validation of image during edit profile (wp-admin). My code for validation is: add_action( 'user_profile_update_errors', 'validate_steamid_field' , 10, 3); function ...
1
vote
0answers
24 views

Wordpress if (is_page) translation on certain page

Hy there i have the following code for custom translations there are missing. function translate_text( $translated ) { $translated = str_ireplace( 'All Ratings', 'Alle Bewertug', $translated ); $...
1
vote
1answer
984 views

How to fix ob_end_flush() failed to send buffer of zlib output compression (1)?

the following code appears at the bottom of my admin page: ob_end_flush(): `failed to send buffer of zlib output compression (1) in /home/benemota/public_html/wp-includes/functions.php on line 2619` ...
1
vote
0answers
26 views

Wordpress admin categories sort show is wrong

I create categories like: A -- A1 -- A2 ---- A21 ---- A22 -- A3 B -- B1 -- B2 C But in new post on left side admin show wrong: A -- A1 ---- A21 ---- A22 B -- B2 C A2 A3 B1 Why? How I can fix it? ...
1
vote
0answers
26 views

Cannot access wp-admin/wp-login.php (Wordpress backend) anymore, what could be wrong?

The problem I cannot access my Wordpress backend anymore. I cannot do this by going to www.sitename.com/wp-admin and not by going to www.sitename.com/wp-login.php. When I go to /wp-admin, it seems ...
1
vote
0answers
377 views

adding a script with type=“module” to woocommerce admin area

I'm trying to connect a my brother QL-800 label printer to a woocommerce webshop admin page open order, click address, print it. brother provides a javascript library (b-pac: https://www.brother.co....
1
vote
1answer
119 views

Comments to only be seen by their author

I am currently attempting to make comments that only the author when logged in can see those posts. Two different logins to the website cannot see each other's posts. I have found some stuff online ...
1
vote
0answers
51 views

Remove metabox from WordPress menu editor page?

I'm trying to remove meta boxes added to the WordPress menu editor page from a theme, but can't seem to figure out how to do it, I found this answer, but I must be doing something wrong as it isn't ...
1
vote
0answers
24 views

No access local wordpress website after PC formating

I created a wordpress website locally 4 months ago. One day, I decided to format my computer because it works very badly. After formatting, I installed Wampserver again for offline access, but to my ...
1
vote
0answers
18 views

How to add Wordpress Admin “Insert Link” UI (searches through existing posts for URL) and functionality into a custom plugin?

When inserting a link into a post using the Wordpress Visual Editor, a popup UI shows up allowing you to type in / live search for the title of a published post. Is there any way to allow this ...
1
vote
0answers
21 views

Is it possible to restrict all admin pages except theme customisation and storefront using plugin?

I want to restrict all admin pages except theme customise. I am wp_set_auth_cookie() for auto login. I don't need any other admin pages. I write code in my plugin add_action( 'wp_loaded', '...
1
vote
0answers
139 views

transition_post_status not working via Quick Edit

I am trying to use transition_post_status with custom post statuses to update user meta each time a post status is updated. The following works when editing the post status in Edit Post Screen, but ...
1
vote
0answers
52 views

CPT post count is 0 for the authors in the User list

I have created few CPTs for my website. There are several guest writers for my blog. The posts that the authors write are CPTs. However, the post count beside the user list is still 0. I want to ...
1
vote
0answers
100 views

jQuery is missing in wp-admin

I have downloaded all wordpress project folder from production server. Also changed the website URL to local one and logged in as an admin, but somehow jQuery is missing in wp-admin. What can gone ...
1
vote
1answer
36 views

Drafts widget for admin page

The Quick Draft widget on the admin dashboard has an area to create a new post and a list of recent drafts. I'd like a widget like this but with ONLY a list of recent drafts. Surprisingly, I couldn'...

1
2 3 4 5
13