Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [wp-admin]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
5 views

display dynamic WP Site logo on wp-admin using CSS

I'm looking for a way to always display the current site logo (as set in customiser) on the wp-admin page in place of the WP logo via CSS. I know how to manually add a custom image (code below is part ...
user avatar
0 votes
0 answers
14 views

Change Text in Admin Panel

How can I change the text Posts to News ? I am developing a Plugin. I am working with Custom Post Types.
user avatar
  • 377
1 vote
0 answers
38 views

Speed up / Optimize Admin Edit Post Page on Large Websites (50-150k posts, 50 custom fields per post)

I'm working with a set of large Wordpress installs with 50-150k posts, each with 40-50 custom fields. The installs are very basic, with limited plugins (less than 5), and a default Wordpress theme (i....
user avatar
  • 661
0 votes
0 answers
23 views

Users can login to Website from wp-admin prior to confirmation email

I have a wordpress website that has an account sign-up/login system. When a user creates an account from the website's signup page (not the wp-admin page), he has to confirm the email link (in his ...
user avatar
0 votes
1 answer
14 views

Is wp-admin/about.php required? Can i omit it from my website

There is a page in wordpress available by default(accessible from wp-admin), the url is as follows: https://mywebsite.com/wp-admin/about.php I'am considering to remove this page, or block access to it ...
user avatar
0 votes
0 answers
8 views

Additional navigation bar in header

Recently, my site started showing two navigation bars at the top of my page. They are also the wrong layout. I am fairly new to WordPress. I have only designed five websites so far. This is the ...
user avatar
  • 1
0 votes
1 answer
18 views

Create field of Custom Post Types

I am using below code to create Custom Post Types. $supports = array( 'title', // post title 'editor', // post content 'author', // post ...
user avatar
  • 377
0 votes
0 answers
13 views

DISALLOW_FILE_EDIT is false but I still am not able to edit files from the admin interface and the menus do not show up

I have checked the constant DISALLOW_FILE_EDIT and it's set to false. I am using Trellis to setup my sites, and it is working correctly on my actually staging server VPS. But on the local virtual ...
user avatar
0 votes
1 answer
8 views

Newly created user role not displaying on users screen

I have created a new role with the following code: add_role('sponsored_content', 'Sponsored Content', get_role('contributor')->capabilities); I have added users to this role. When viewing the ...
user avatar
-1 votes
1 answer
29 views

WordPress blocking polling request when signed into Admin

I've setup a polling script in js that sends an XMLHttpRequest to the server to wp-admin/admin-ajax.php (yes, legacy, I know) at a fixed interval of x seconds. The response returned by that request ...
user avatar
  • 286
0 votes
1 answer
31 views

Admin slow on Postlist (over 30k Posts in Database)

we have a Site with around 20k Posts in the normal postlist and another 10k in other CPT. The custom post types work really fast, but the normal Post List doesn't. I assume that might be because the ...
user avatar
0 votes
0 answers
16 views

Add starts rating in woocommerce product comment from backend

I collect reviews from different websites and I would like to be able to add them manually to my products in woocommerce, how can I add the star rating from the back office over the text? in the ...
user avatar
0 votes
0 answers
13 views

Could not override the url in wp-config file

for the wordpress deployment purpose I have added the following code in wp-config.php file define( 'WP_HOME', 'http://example.com'); define( 'WP_SITEURL', 'http://example.com'); I did not make any ...
user avatar
0 votes
1 answer
13 views

Updated MAMP and localhost on MacOS site no longer accessible

I have tried to access my site on localhost:8888/ and it no longer loads with any formatting since updating MAMP to a newer version. I am able to access the db through phpMyAdmin but not sure what is ...
user avatar
0 votes
1 answer
48 views

How to Restrict Access to all wp-admin pages for subscriber users

Here is summary of the problem and required solution: Access to mywebsite.com/wp-admin is blocked for subscribers [which is good] However, if i enter the link manually on the browser as follows: ...
user avatar
0 votes
1 answer
44 views

wp-admin 503 error

I am getting a 503 service unavailable error only on my wp-admin page and not my main site and I cannot figure out what has gone wrong! Steps I've taken to try to fix it are: disabled all plugins ...
user avatar
  • 101
0 votes
0 answers
19 views

Show shipping class on product admin page

I'm developing a site for a client, and they want to be able to see the shipping classes assigned to all products on the Product Index page within WP-Admin. It would be idea to add it as a column so ...
user avatar
0 votes
0 answers
12 views

Weird urls after moving site from local env to a server

I've noticed after moving website to a server post slugs started looking something like 78a6a04c0d498postname78a6a04c0d498.
user avatar
0 votes
0 answers
20 views

How do I fix wp-admin error when exporting reusable blocks?

I am having trouble with the export to json feature of the reusable blocks shown below. I am getting the following console errors after pressing the export to json link: Access to fetch at 'https://...
user avatar
0 votes
0 answers
10 views

Hide title field of selected post-types on edit pages

My question is how to hide the title field on the edit page of a cpt that has a title field here hide litteraly means do not display or do not show, or do not offer the possibility to be edited "...
user avatar
0 votes
0 answers
21 views

Trigger jQuery to add events after AJAX-loading table in admin plugin

I created a small Wordpress plugin which has some admin-panels. I am using the WP_List_Table class to display some data, but this HTML-table is ajax loaded. Because of the ajax-loading, jQuery doesn't ...
user avatar
  • 101
0 votes
2 answers
142 views

Why does do_robots() Allow: /wp-admin/admin-ajax.php by default?

This is happening with a fresh, new WordPress install. But all you need to do is look at the crazy do_robots() function, which outputs the following... User-agent: * Disallow: /wp-admin/ Allow: /wp-...
user avatar
  • 423
0 votes
0 answers
9 views

How to insert php code like this one? [duplicate]

So I found this code: How to limit users to one comment per post And I want to use it in my Website. How?
user avatar
1 vote
1 answer
50 views

What is the practical difference between is_admin() and is_blog_admin()?

I can see that the 2 functions are almost identical. Only difference is in one line: @is_admin() return $GLOBALS['current_screen']->in_admin(); @is_blog_admin() return $GLOBALS['current_screen']-&...
user avatar
0 votes
0 answers
23 views

Prices showed without decimals separator on BACKEND. Weight/price not working on Wocommerce

I have a normal store that suddenly started to show product prices in the BACKEND without any decimal separator, just an integer number. Price has a comma separator when clicking to edit the product ...
user avatar
2 votes
0 answers
16 views

Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?

All of my sites were recently hacked and I had to restrict access to the WordPress admin. The logs are now full of denied connections, but I also see errors coming from the IP of the server that ...
user avatar
  • 123
1 vote
0 answers
19 views

Unreadable pagination

I act according to the Output of posts There is a file blog.php <?php /* Template Name: Myblogpage */ ?> <?php get_header('third'); ?> <!-- Content ==========================...
user avatar
0 votes
0 answers
13 views

Don't run code if in customizer or privew

I have a function compiling my sass every time the page loads, IF it's enabled in the theme. This of course gives a couple of seconds load time which is fine, it's only used in development. But I'm ...
user avatar
  • 11
0 votes
0 answers
16 views

wp post_tag change minlength

I try to change minlength value from post tag search in wp-admin (wp-admin/js/tags-suggest.js) -> .fn.wpTagsSuggest -> options -> minLength but cant override this value
user avatar
0 votes
0 answers
21 views

Open login logo URL in new tab

Using add_filter('login_headerurl', fn() => FRONTEND); i was able to change the login logo URL. But i couldn't find a way to make it open in a new tab. Or in other words, how can i add target=&...
user avatar
  • 103
1 vote
1 answer
20 views

How to hide some section in WordPress under Post

I have a mobile and I just wondering How to hide some of the sections but keep the functionality under WordPress Post to make it look simpler than what I've right now? If possible I just want to ...
user avatar
  • 121
0 votes
0 answers
49 views

issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path

i'm trying to setup a kubernetes deployment for two wordpress websites in different pods, each will have it's own deployment and service, etc..., under the same ingress, i have setup the ingress this ...
user avatar
  • 1
0 votes
0 answers
34 views

Wordpress AJAX Request returns 400

I am trying to make a ajax post request, however I a getting a 400 error, not sure what I am doing wrong. If you are able to have a look at my code, I'd really appreciate it. Below is the form. <...
user avatar
0 votes
0 answers
18 views

How can I put content before my custom post type default pages?

I created a plugin with a Custom Post Type, and I want to add a menu before all of my plugin pages. The pages are mixed, there are custom pages (where I can add the menu easily), and there are a few ...
user avatar
  • 1
0 votes
0 answers
13 views

Change admin_title of a plugin using code snippet/functions

Been trying to figure out a good method to change the browser tab/window title for a backend admin page for a plugin. I've tried a slew of plugins, including Admin Meu Editor Pro, and for whatever ...
user avatar
0 votes
1 answer
29 views

Programmatically emulate viewing a post in wp-admin

A process is triggered when I view a post at https://my.wordpress.page/wp-admin . I don't know what is happening during that process. I want to trigger it for all posts in a list of post ids. How can ...
user avatar
  • 123
0 votes
0 answers
27 views

View all comments on post one click

In the admin site, on the page to edit or view a single post there is a meta box that shows the most recent ten comments on the post, with a "Show more comments" link at the bottom to load ...
user avatar
0 votes
0 answers
22 views

How to remove the Login Customizer menu from the WordPress dashboard

I'm using this code to remove some unused menus from my WP admin. However, I can't remove Login Customizer. How can I remove it? function kbs_hide_menus () { remove_menu_page( 'edit-comments.php' ...
user avatar
0 votes
1 answer
47 views

WP_Query outputs wrong post in custom post type

So I'm working directly in the Admin Dashboard of my website, below I will explain what I'm attempting to achieve and what issues I'm getting. Here is the code: add_action('admin_head', '...
user avatar
  • 177
0 votes
0 answers
16 views

Toggle between block 'edit content' and 'select' not properly working in WordPress Admin

I've been struggeling for a while now with toggeling between 'marking / selecting a certain block' and 'editing content' of that block in WordPress' Admin area. When I click on a specific block in a ...
user avatar
  • 353
0 votes
2 answers
75 views

Filter for admin (back end) 'reply to' comment

Looking for the filter hook for the admin/comments/reply to process (where you use 'reply to' in the comments administration screen). This will be used in a custom plugin. (The plugin adds a hidden ...
user avatar
0 votes
0 answers
14 views

Do not load the site as soon as you enter the WordPress panel

I have a strange problem that when I enter the WordPress admin panel, my site does not load, as soon as I press the WordPress exit button, the site loads well. I am using Windows 10. I changed the DNS ...
user avatar
0 votes
0 answers
16 views

How to add a field on the user creation page?

How to add a field on the user creation page "/wp-admin/user-new.php"? I need to finish after exactly after the email field, I can’t understand how to do this (I understand that you can use ...
user avatar
  • 1
1 vote
1 answer
22 views

remove wp floating submenu in wp dashboard

i successfully done making the menu name to be collapsed on click , but i have a problem with the floating submenu that appears on hover on menu name , i need to make this floating submenu to be open ...
user avatar
0 votes
2 answers
58 views

Extend Wordpress Core Classes in OOP Theme?

What is the best way of using WordPress's core classes in the context of an object-oriented design? I am trying to use $wp_admin_bar to remove a couple of the default WordPress designs but I am not ...
user avatar
0 votes
0 answers
28 views

Wordpress Admin extremely slow when other admin logged in

The sites has multiple authors/admins, who may sometimes edit/publish posts at the same time. Whenever more than one user is author/administrator is editing/publishing another post, the WP Admin ...
user avatar
  • 101
0 votes
1 answer
20 views

Why does an ad page open when I browse my websites's wp-admin page?

While I try to edit my website via Wordpress and open any wordpress page after logging in, the page shows an ad page and I am not able to edit my website. The ad keeps appearing when I try to edit ...
user avatar
  • 1
0 votes
1 answer
26 views

Edit post & page option does not display on latest wordpress

I am not able to edit the WordPress default posts/pages from front-end. I have tried to deactivate all plugins, check/uncheck toolbar option(from profile) and also wp_footer() function in the file. ...
user avatar
1 vote
1 answer
31 views

wp_comments table really big casuing /wp-admin/edit-comments.php to slowly load

Our wp_comments has millions of rows. When we load /wp/wp-admin/edit-comments.php it would timeout. Looking at mysql, this simple query is taking a long time SELECT wp_comments.comment_ID FROM ...
user avatar
  • 121
0 votes
0 answers
18 views

What hooks should you use to create a table only once?

add_action( 'admin_menu', string $createMySQLNewTable ); I saw this code inside the constructor and I think this hooks run every time we visit the admin panel, so it's going to throw an MySQL error ...
user avatar

1
2 3 4 5
44