All Questions
3,923 questions
0
votes
1
answer
239
views
Site admin can login but cannot access wp-admin after domain migration?
Moved a site to a new url. The site admin can login but when trying to acess wp-admin gets a perms error. -- Sorry, you are not allowed to access this page. ---
This has to do with the ...
0
votes
1
answer
139
views
Wp doesn't save meta box data
My WP doesn't save my meta box data. I see the metabox and the field, but the data doesn't saving. Somebody could help me? Thank you. This is the code:
// 1. Metabox létrehozása
function my_meta_box(){...
0
votes
2
answers
161
views
Unable to access WordPress admin panel
Yesterday, I noted that only the home page of workcosec.com properly visible. If I tried to access a blog post, there was a message of critical error.
Through FTP, I renamed plugin folder to plugins ...
0
votes
1
answer
161
views
How to change the headline title for an admin page in a plugin?
I have a working plug-in, but to add a little polish I would like to add the plug-in title to the h1 block at the top of the wrap container, but ahead of the admin_notices list, in the same way that ...
0
votes
0
answers
46
views
Many big issues in the website, WP_Debug not showing
I have this website https://itds.pl/ suddenly it started working really bad and I can't find the reason.
Website is Multi website system
Using WPML
Using ACF
Have two domains:
Main domain Eng and has ...
0
votes
1
answer
64
views
WP-Admin not reachable
I added a wp_die message ("it works") to the functions.php of my child theme for testing. After that, the wp-admin and the frontend was no longer accessible, but it comes only the wp_die ...
0
votes
0
answers
18
views
My website does not load since two days!
Two days ago I bought a domain alijoohy.com and hosting using hostgator, and installed WordPress but till cannot enter the admin webpage,I don’t know what to do. Could you please help
0
votes
1
answer
2k
views
Why can't I enter the wordpress admin interface?
I accidentally changed the url of my wordpress page, which I finally managed to restore in phpmyadmin, the first page of my website works, but the second page doesn't, and I can't even log in to the ...
0
votes
0
answers
138
views
Extend user search in the users.php page to allow for searching by role and excluding specified email domains from the "users search" input box
Update: A solution for this question was provided byt @t31os_ here Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the "users ...
0
votes
1
answer
748
views
Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the "users search" input box
I have been looking to extend the ability to search users in the backend for some time and have tried variations of several functions recommended in these articles and posts along with others not ...
2
votes
0
answers
130
views
Prevent posts from being published if the 'Uncategorized'-category or no category is selected
I do not want a user to be able to publish a post if no category is selected. This exact solution from a similar question is exactly what i want to do:
jQuery(document).ready(function ($) {
// ...
0
votes
1
answer
86
views
How Can I Prevent Admin User Role Loss?
I wrote a series of bash scripts that use git to push my files, wp-cli to export/import my dbs, and rsync to upload/download dbs, and wp-cli to search-replace usernames & urls between test, ...
1
vote
1
answer
161
views
How do I change the Go To Categories link in the term_updated_messages
I have a custom taxonomy titled "shows". When a show gets updated it displays a message to the user followed by a link. I have already changed the message by using
add_filter('...
0
votes
1
answer
121
views
Redirecting the user to the admin table area after publishing a post, getting an invalid response error?
I'm trying to redirect the user back to the custom post type page in the admin area after they publish a post but i'm always getting the error:
Publishing failed. The response is not a valid JSON ...
0
votes
0
answers
200
views
Override Wordpress Core File?
I'm currently writing a plugin that will not work without adding a simple action hook to one of the core files located in the wp-admin folder. Without violating best practices is it possible to copy ...
1
vote
1
answer
227
views
LinkControl not showing suggestions when used on admin page
My goal is simple, I'd like to use the LinkControl element on an admin page rendered by my plugin. Using the LinkControl on the BlockEditor page is quite easy the issue is doing it without being ...
0
votes
0
answers
93
views
How to make the Panel // WP-Admin lighter via Mobile
By accessing the WordPress Admin Panel.
via Cell/Mobile the loading is too slow.
And the layout is not responsive.
In Chrome console I get the following errors
[Violation] 'DOMContentLoaded' handler ...
0
votes
0
answers
218
views
How can you change the admin dashboard URL without symlinking?
I'm interested in changing the WordPress admin dashboard URL without using a third-party plugin.
NOTE: I know that 'security by obscurity' is not the best security measure; I plan on using other ...
0
votes
1
answer
600
views
PHP Fatal error: Uncaught Error: Cannot unset string offsets when trying to upload any file to media library
When trying to upload files to the Wordpress media library I encounter the following error:
Unexpected response from the server. The file may have been uploaded successfully. Check in the Media ...
0
votes
1
answer
35
views
How to create directory under my active theme directory
I want to added a directory under my active theme and then add file inside the newly created directory I need steps to avoid mistakes thank you
0
votes
1
answer
1k
views
Can't save changes or modify settings in Dashboard but Pages and Posts are fine
I am working on a client site from a previous developer. It needed many updates so I updated WordPress to v.6.0.1, Astra theme 3.9.1 (uses a child theme) and the many plugins in use. After all this, ...
0
votes
1
answer
65
views
Print results of a WP_Query to wp-admin/upload.php within 'delete_attachment' hook?
I am working on a WordPress plugin feature that checks for usage of image media before deletion – specifically within Advanced Custom Fields image fields in posts of a custom post type, but this part ...
0
votes
0
answers
974
views
admin-ajax.php returns 0 even when the post status code is 200 OK
I've seen a lot of similar questions and I've incorporated the feedback from the answers but still, the issue is not resolved.
Ajax request is sent on click of a button in js file.
WyrRoute.js
...
1
vote
0
answers
270
views
Wordpress Site is Broken, Cannot see wp-admin page [closed]
My wordpress site is broken after I tried to reset my site with some plugin called wp-reset.
I tried below solutions to fix this issue but still not able to see admin dashboard:
In phpMyadmin - db, ...
0
votes
1
answer
1k
views
User Capabilities are not available in WP REST permission callback?
I want to only permit the execution of specific admin tasks for users who are
currently logged in to the wp admin panel (via is_user_logged_in) and who
have a specific capability (via ...
0
votes
0
answers
24
views
CPU overload spam - redirect link to wp-admin and new post
I noticed my wordpress website is over utilizing CPU resources causing my shared hosting to trottle slowing down drastically my website.
Upon doing a CPanel inspection on resources, I found this ...
-1
votes
1
answer
89
views
Anyone Can Register
Please explain what is the purpose or intent of the setting "Anyone can register"...is this a backend setting or does it make my personal information available?
0
votes
1
answer
273
views
Store custom meta box data as serialized array
I have been trying to find out if it is better to store custom meta box fields for a custom post type individually or as a serialised array. On the web I have seen different approaches but which one ...
4
votes
1
answer
1k
views
External HTTP API calls slowing down Wordpress admin [closed]
By using Query Monitor I'm finding that virtually every page load within Wordpress admin results in 15-25 server-side HTTP API calls being made. Most take less than 0.1s, but there's 5 or more that ...
0
votes
0
answers
125
views
check_admin_referer()
How to use check_admin_referer() ? I read this link. But I am not clear.
0
votes
2
answers
742
views
Usage of call back function of add_meta_box()
I am learning WordPress Plugin Development. My Code is like below.
class Admin
{
public function __construct()
{
add_action( 'admin_menu', [$this,'news_meta_boxes'] );
...
0
votes
0
answers
547
views
Can't access wp-admin after http to https change
Changed to url from http to https in settings >> general. Hit save changes. Now I get this error:
The requested URL was not found on this server.
Additionally, a 404 Not Found error was ...
0
votes
1
answer
631
views
add_post_meta() & update_post_meta()
I am learning WordPress Plugin Development. I need to store Metabox values which are related to Custom Post.
In this regard where should I use add_post_meta() & where should I use update_post_meta(...
0
votes
1
answer
420
views
Display stored value in Meta Box
How to display stored value in Meta Box ?
I added Meta Box with below code.
add_meta_box('wp_news_settings', 'News Settings', 'news_settings_html', 'news', 'normal', 'default');
My call back function ...
1
vote
0
answers
50
views
Add Content Column to Custom Post Type backend
I have a basic custom post type:
function create_posttype() {
register_post_type('guestbook',
array(
'labels' => array(
'name' => __('Guestbook Entries'),
...
0
votes
1
answer
167
views
Save Multiple Metabox values
How to Save Multiple Metabox values ?
I have 3 fields like below image.
Should I use below code ?
if (isset($_POST['name'])) {
update_post_meta($post_id, 'name', sanitize_text_field($_POST['name']...
0
votes
1
answer
133
views
Programtically selecting image URL in Media Library modal
I've been struggling with Backbone for a few hours now while I'm trying to select a custom image URL in the media modal. The idea is to have a button that I've coded already and when the user clicks ...
0
votes
0
answers
22
views
Publish box in CPT remove 'edit' link
Hello I have a custom post and in the Publish Box I would like to remove the timestamp edit link.
0
votes
2
answers
67
views
Have mu-plugin remove meta box ONLY if it isn't already removed in functions.php
I have a mu-plugin that removes a branded "Welcome to X" dashboard meta box placed there by the hosting company I work for. It works fine mostly.
However, some of our agency clients are ...
0
votes
1
answer
83
views
Hide Status Option From WordPress Publish Metabox and Rename Published on:
I want to hide Status option on publishbox and rename Published on to Date Created for Custom post post_type like you see in red on the below picture.
0
votes
1
answer
403
views
How to make an admin plugin menu page go full screen?
I'm building a plugin that contains a simple editor for a particular file format. This will only be accessible in the admin menu's for the plugin, no frontend access. I've started looking at the ...
1
vote
1
answer
1k
views
404 error comes up when I go to wp-admin after first installation [closed]
I just installed wordpress for the first time. When I go to mywebsite.com/wp-admin a 404 website error comes up. I went through the routine of changing the plugins and themes names although I never ...
1
vote
1
answer
62
views
Changing custom type name hides the posts [closed]
I created a custom post type. Plugin used is Custom Post Types & Custom Taxonomies plugin which does the job very good.
And added some posts to it.
But when I modify the name of the newly created ...
0
votes
2
answers
246
views
How to replace username with email address in users table
I have a custom built site that does not use usernames and everything requires use of their email address. The username is auto generated and looks bad in the table.
I know there are filters and ...
0
votes
1
answer
43
views
add_submenu_page() issue
I am trying to add a Menu in WordPress Admin Panel. I am using below code.
This code is working.
add_submenu_page('weather_info', 'Weather Information', 'Weathers', 'manage_options', 'weathers', [$...
0
votes
1
answer
80
views
How using the Meta Box plugin, to filter posts by the value of a post type field?
I'm using the Meta Box plugin to create custom post types and fields. There is a record type teachers, and I'm trying to display the lessons associated with him on the page of a certain teacher. The ...
0
votes
0
answers
52
views
Metaboxes inside Tab
I am learning WordPress Plugin development. In this regard I have to save some settings along with Custom Post in Admin Panel under a Menu. Can I place metaboxes inside tab for this issue like the ...
1
vote
0
answers
166
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 ...
0
votes
0
answers
72
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.
0
votes
0
answers
153
views
Why is $_POST empty when saving custom Meta Box?
I'm creating a Meta Box in my custom Plugin where the Administrator can select which users can view a certain post based on their roles. When I select the role and save the meta box content by ...