Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [wp-admin]

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

0
votes
1answer
8 views

Add admin page to the top of the admin panel

I want to add a page to the admin panel of wordpress. If I want to link it into the menu on the left, I can use add_menu_page. But I want to add it to the top of the admin panel. How can I do this?
0
votes
2answers
13 views

Hide Posts In Back-end/Admin Based On User's (Pseudo) Privileges Controlled by ACF

I'd like to disable access to posts in the back-end/Admin from a user that doesn't have the privilege to view those posts. This will function similar to the Author role however this "privilege" is ...
0
votes
0answers
10 views

WordPress admin notifications redirect to dashboard

After adding the 3rd notification I'm unable to see the list or edit any of those as WordPress keep redirecting me to dashboard when I click onto Notification in the menu. After manually finding and ...
0
votes
0answers
17 views

Webpack 4: combine core and plugins in unique build/admin.js?

I'm going through @wordpress/scripts but it's not clear to me how to emit a unique 'build/output.js' which would combine / merge all the assets (admin and plugins) through webpack 4. Let me explain. ...
0
votes
1answer
30 views

WordPress Plugin PHP Not Calling Function

I've recently created a custom WordPress plugin to keep track of submissions, reviews etc things on my website. I built all of this in a single main plugin file and before launch I'm looking to clean ...
0
votes
1answer
13 views

Unable to properly login

First of all, sorry if the question is not clear the first time, it's a bit tricky to explain. Here's the issue i've got: I have a website running locally with mamp pro. Site name is dev.site (the ...
0
votes
1answer
14 views

Admin page changes the $_POST data

I'm trying to save a json array to the database, and i created the following class defined('ABSPATH') || exit; class Theme_FAQ { public function __construct() { add_action('...
0
votes
2answers
18 views

Can't access wp-admin, redirects to http://%24domain/wp-admin/

I have a WordPress website on a Digital Ocean VPS which I've come back to and tried to log into the admin panel through the 'wp-admin' link. For some reason I can't access it now. The website gets ...
-1
votes
0answers
22 views

set secure cookies when loging in

I have an issue although I am successfully logged through a front end form, in the front end I can perform all the functionalities that a logged in user can do. however when i try to acceess the wp-...
0
votes
0answers
19 views

Backend is running extremely slow

1-2 Weeks ago I asked my server provider to transfer my server to a different location as this one was responding slow and was taking time to load pages from far location so I managed to get it ...
0
votes
1answer
19 views

/wp-admin/ works but website doesn't load

I was doing some small code changes on the theme, just changed HTML in one of the templates, and my website stopped working. I'm getting "This page isn’t working" HTTP ERROR 500 but only when I visit ...
0
votes
0answers
17 views

How to show WP admin edit page within template page/post?

So I am wanting to show the wp-admin/post.php?post=999&action=edit Inside my custom template of the single.php and page.php. So I understand that I can do it using an iFrame by basically ...
0
votes
1answer
80 views

Editing the term_order field

Can I add the term_order field to the terms edit page? I need a text field, not a sorting plugin. Thank.
0
votes
0answers
20 views

Wordpress Screen Options, Help, Visual editor, Status, Visibility, Revisions, Published on and any toggled indicator don't work for posts

New to WordPress, I'm trying to debug the problem briefly described in the title of this question. None of these links works in our site when we edit a post. All work fine in any other components (...
0
votes
0answers
10 views

Customize “Search Submissions” for a CPT

In wp-admin, when viewing all posts of a CPT type, there is a "Search Submissions" textbox and button. I believe by default this searches the content, title, and a few other common fields. I'd ...
0
votes
0answers
22 views

404: WordPress Rest API

I have a laravel 5.5 site which is up and running. Further, I have to develop WordPress inside a laravel site. Hence I have setup a WordPress site inside laravel's public folder as follows: ...
0
votes
0answers
10 views

hide edit post setting elements

i need to remove post settings like publish now & later, blocks and etc. selections from post writing page. i couldn't find any solutions. imma quite noob at wordpress os i jumped over here :) i ...
0
votes
1answer
24 views

How to I change the value of a custom field on the home page?

I'm new to WordPress and have inherited a site that uses Custom Fields. In header.php there is; <?php if(is_front_page()) : ?> <div class="row"> <div class="col-md-4 header-...
-1
votes
1answer
29 views

Combining JS files to one script

I am trying to combine all JS files - local and third party files. I tried using the following plugins to do the same: Autoptimize: It is just not combining the JS files to one Fast velocity minify: ...
0
votes
1answer
26 views

Adding a button to send email to a user in WordPress Admin Users table

I would like to add a button for each user in the user page in wordpress admin area that will send an email to that specific user when clicked. The code adds the action link "Send Verification Email" ...
0
votes
0answers
27 views

Strange wp-admin problem for all users/adminstrators except the original one?

I don't get this but for all wp admin users except the original main user i get a strange error which causes the visual editor to fail: load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,...
1
vote
2answers
114 views

Wordpress Rest filter for custom taxonomy gets applied to the admin area

I have a custom taxonomy called collection, with advanced custom fields in it. I'm using wordpress API, so since I need to filter the API responses by ACF values, I have this filter in my theme ...
2
votes
2answers
45 views

How can I rename the WordPress AJAX URL? [duplicate]

I'm currently looking for a way to change / hide the default WordPress admin-ajax.php URL. I want to do this to remove the admin from it to prevent misunderstandings by my customers when I use the ...
0
votes
1answer
24 views

Why is Wordpress enqueuing admin relevant scripts (e.g., React, ReactDOM, Redux, hooks, TinyMCE etc) when not logged in?

In attempting to boost the performance of my website, I've noticed that Wordpress is enqueuing a lot of the admin relevant scripts and stylesheets on the front end. I'm wondering how I can stop this ...
0
votes
1answer
68 views

Filter Pages by Custom Field (ACF) in admin area

I'm trying to filter pages in admin area by a custom field created with ACF. I found a function here ( http://www.iamabdus.com/blog/wordpress/filter-custom-posts-by-custom-field/ ) and I adapted that ...
0
votes
2answers
14 views

Insert Modal on user first login

Attempting to create a Welcome Modal for first time users on initial login to my Multisite network. I'm using code from this tutorial https://wp-mix.com/wordpress-first-user-login/ I can see the User ...
0
votes
1answer
48 views

Some fields in Settings API form are saving, others are not

I have a class used for a plugin's admin form, using the Settings API. It has a lot of fields, and some of those fields depend on already existing values in wp_options. The existing options determine ...
0
votes
1answer
22 views

Is there a simple way to set wordpress site files back to out of the box?

I have an amateur wordpress site for a club which seems to have been hacked. With some help on here I have undone some of this but I've still got quite a few problems. Mainly I can't get into the ...
1
vote
1answer
30 views

Adding body class to login page?

I can't figure out for the life of me how to add a custom body class to the WordPress login page. I found this thread, which suggests using the admin_body_class along with this one to check if the ...
0
votes
1answer
17 views

Custom posts of one type have disappeared from admin. Still appear on site [closed]

At some point this morning I realised that all of my custom posts of one type ('resources'), have disappeared from admin, the section is still there yet says 'no posts found'. Another type, 'contacts' ...
0
votes
1answer
21 views

Restrict Custom Post Type to One Item

I'm looking to build a plugin that stores settings for a companion app my Wordpress site works with. I've gotten to the point where I have a custom post type mobile_settings that stores labels and ...
0
votes
1answer
26 views

I cannot get the “Read More” button to work!

First, some background...I am just starting with Wordpress, and am working on switching the website for my church (www.bvchurch.com) over to Wordpress (temporarily at www.bvchurch.com/wordpress). We ...
0
votes
1answer
18 views

Develop Admin Panel Page

How to develop a Admin Panel Page in WordPress DashBoard like All Posts page ?
0
votes
0answers
28 views

wrapping 'rest_api_init' in 'is_admin()' function

i'm create custom admin page via add_menu_page, let's imagine that my custom page has url wp-admin/admin.php?page=settings_page then i'm checki is_admin() function via var_dump on my ...
0
votes
0answers
9 views

Modify taxonomy lookup query on Edit Media page in the wp-admin

I am using a custom taxonomy to link images to a registration system. The way the taxonomy is used, there can be multiple slugs with the same name. When someone adds an image to the media library and ...
0
votes
0answers
25 views

My subsites accidentally went from one multisite network to another. How do I change it back?

Hello, please see the flowchart. Basically, I had a problem and contacted my hosting support. The person in charge then told me that there were some core Wordpress files that had to be replaced etc. ...
1
vote
2answers
24 views

Display $pagenow error notice on all admin pages

I need to show my client error message on all admin pages. I have the following code, that adds a custom notice only on the admin dashboard page: add_action('admin_bar_menu', 'custom_toolbar_link2', ...
0
votes
0answers
22 views

How to disable sub menu items from being created?

In WordPress under Appearance > Menus there is the visual menu builder where you can "indent" items to make them sub items of another menu item. I would like to disable the ability to make items sub ...
1
vote
1answer
25 views

How to provide a plugin which requires CMB2 (plugin dependencies)?

Every serious plugin developer probably has to deal with this problem: WordPress is not supporting composer or any dependency management by default. I have written a great plugin which I would like to ...
0
votes
1answer
37 views

Access to “My Site” is missing from the admin bar

You know there´s a direct access to every wordpress site right on the left side of the admin bar (or tool bar) once you get access to the wp dashboard which is intended to connect your website backend ...
0
votes
1answer
11 views

Preprocess submitted data

I created WordPress module, which adds my custom field in general settings in WordPress Admin. However after submitting whole form in admin settings, I need to modify my field's value before saving to ...
0
votes
0answers
16 views

How to force all non-Admin links in the Admin console to open in a new tab?

I prefer to never lose my Admin view. If I click on a link in the Admin and it goes to another part of the Admin (e.g. New Post), great. But if a link goes either to my site's front-end or to an ...
0
votes
0answers
70 views

How to be able to edit custom address fields in WooCommerce admin?

I'm Dutch and in The Netherlands we use a different address format than in the US. We'd have to spit the street name and the house number. In order to fix that I used "address line 1" for 'Street name'...
0
votes
0answers
28 views

Ajax Issue for Add Media (Not All Images Load)

I'm working on a website that has over 300 images, using WordPress 5.1.1 with Classic Editor enabled. In Media Library, I can view all the images since it uses pagination. However, when I click Add ...
2
votes
0answers
36 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. ...
0
votes
1answer
33 views

Launch wordpress site to local computer from live website backed-up

A previous developer has created a wordpress site in the live server. Now after seeing the live website, it caught my attention that the website plugins, same with the theme, were buggy due to long ...
2
votes
2answers
64 views

Use a textarea for a custom post type

I have a custom plugin, using a custom post type for data entry capabilities in the admin section. I would like to use a textarea form, along with the checkboxes, select and text input fields I am ...
0
votes
1answer
61 views

Modify wp-admin page header 'viewport' meta data

The 'wp-admin/admin-header.php' file outputs 'viewport' meta data. It seems the value of the viewport is hard coded into the file. (See: https://github.com/WordPress/WordPress/blob/master/wp-admin/...
0
votes
1answer
20 views

Sort by promo code used woocommerce admin panel [closed]

I work on Woocommerce / Wordpress and I'm new, I want to custom my Woocommece orders list admin panel by adding the used coupons inside it, but I've got a little problem when i click on promo field ...
1
vote
1answer
191 views

WP /wp-admin/admin-ajax.php produces 404

Our site has been working fine in the last week. Today, I can't add a new page to our menu. Clicking "Add to Menu" just produces a spinning icon that never disappears. If I look at the Chrome console,...