Questions tagged [admin]

Users with the ability to perform administrative tasks for a site or a network of sites.

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

How to add data to this wordpress admin form from events manager pro plugin [closed]

There's a back-end form in Events Manager Pro (EMP) which fetches ALL users. You then have to select from a stupidly long (over 800 users) drop-down that only shows their username - most often a silly ...
user avatar
0 votes
1 answer
30 views

How to see which sites use my installed plugins (wordpress multisite)

How can I (easily) determine which of my wordpress sites are using a given plugin, on a Wordpress Multisite install? Let's say I have 1,000 wordpress sites on a Wordpress Multisite install. I have 100 ...
user avatar
0 votes
1 answer
32 views

wp-admin too many redirects issue [closed]

The frontend is working fine but when I go to mysite.com/wp-admin it shows this error: Any help would be appreciated. UPDATE: Looks like it was a permission issue. I gave 755 permission to the wp-...
user avatar
0 votes
0 answers
49 views
+50

Can't login to Wordpress admin panel after changing domain to use Wordpress pages as a fallback from React

we had our Wordpress page running on example.com. But now, we're developing new React website, which already has some of the webpages ready. We use Vercel to host that React website. We want React/...
user avatar
0 votes
0 answers
7 views

Prevent users to delete comments from trash

As told in the title, I am looking for a way to prevent users to delete comments from the trash. Only admins should be able to. I tested the scripts at: Function to prevent users from trashing ...
user avatar
  • 1
0 votes
1 answer
29 views

Insert Custom Post Types

I am learning WordPress plugin development. I need to insert Custom Post Type. I registered custom post type using register_post_type(). I am getting below Form when I would like to insert a New ...
user avatar
  • 377
0 votes
1 answer
15 views

Change the destination of the URLs in post.php

The post.php screen lists posts vertically in the admin area [and other post types]. Each item's post_title is a hyperlink, directly above some inline choices. Both the title link, and the "Edit&...
user avatar
  • 455
0 votes
1 answer
22 views

Admin Panel Development [closed]

How to create Tab on Admin Panel like "General Settings" screenshot ? How to create List on Admin Panel like "Pages" screenshot ?
user avatar
  • 377
0 votes
1 answer
24 views

How to pass multiple parameter in add_action()

I have below code. add_action( 'admin_init', [$this, 'settings_page_registration'] ); I would like to use enqueue_assets function name inside add_action(). Should I use like below ? add_action( '...
user avatar
  • 377
0 votes
0 answers
14 views

Can't see past events on admin dashboard

Wordpress admin dashboard only shows the current and upcoming events, but there's seemingly no way to access the past events through admin dashboard. The event page on admin dashboard (wp-admin/edit....
user avatar
  • 1
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
0 votes
1 answer
15 views

Does an administrator access allow someone to access to the WordPress database?

I gave an administrator access to a developper and he made a copy of my entire Wordpress website (meaning : files from my FTP and the whole database). How did he succeed to do that ? Does creating an ...
user avatar
  • 95
0 votes
0 answers
8 views

Function to Load Admin CSS for Super Admin on Multisite

I Run a multisite and have a function for normal admins working fine, however when adapting the code below for super admins it just does not work, the echo CSS style works perfectly, but register and ...
user avatar
  • 11
0 votes
0 answers
5 views

List only parent attributes on woocommerce admin atrributes page

I would like to add option on attributes page screen options, to filter out only parent attributes. The main struggle is that I can't even alter the query... I tried actions: parse_query, ...
user avatar
  • 296
0 votes
0 answers
11 views

Edit Page did not get refresh after update

I notice if I performed a filename change for an image under "Edit Page", the page does not get refreshed automatically. Is this normal? Replication Step Upload new image via "Upload New Media&...
user avatar
  • 13
0 votes
1 answer
36 views

Theme javascript/css 404

I have recently installed WordPress 5.9.2 on my VPS using Apache2 on Debian 11. I want to try some different themes (partially because I think the editor for the new Twenty Twenty-Two theme is clunky ...
user avatar
0 votes
0 answers
8 views

theme directory fallback image outputs url and not the image

I am adding a custom post thumbnail column to the user admin table in WordPress. I want to retrieve a fallback image from my theme image directory if no post thumbnail has been created. I don't want ...
user avatar
  • 125
0 votes
0 answers
14 views

accessing the Admin page

My problem is that I did have Xampp and Word Press downloaded and was working on them just fine. Unfortunately over the course of the pandemic I didn't access them for quite a while. I had to upgrade ...
user avatar
  • 1
1 vote
1 answer
27 views

Fallback media image for featured image not working in admin column

I want to display a fallback image if a custom post type does not have a featured image set and displayed in a custom admin table column. However all that is being output is the image url and not the ...
user avatar
  • 125
0 votes
1 answer
33 views

sortable columns for multiple custom post types not working

I have two custom post types named professor and campus. To each of these CPT's I have added two custom admin columns named image and last_modified, which currently display correctly on both CPT's ...
user avatar
  • 125
0 votes
1 answer
72 views

Add checkbox in admin post list - show checked post in widget

I try to make a plugin with a widget where I can mark / check posts, maybe old post I want to bring back to life. I want to add a checkbox in the field before the title, like I try to show in the ...
user avatar
  • 21
1 vote
1 answer
48 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
1 answer
11 views

JS button animation for ajax the WordPress style

I'm creating a backend ajax functionality form, and I'd like it to stay within the WordPress style. There is a small spinning circle animation that appears on certain forms, like when you try to ...
user avatar
  • 455
-1 votes
1 answer
17 views

How to remove a specific script from bulk wordpress posts and images description?

My site got hacked and I found on the end of each post and image description. Is there any way to remove it? Thank you Gusti
user avatar
  • 1
1 vote
0 answers
60 views

Settings API not saving values to database

Here is what I'm attempting to do: I have two fields called Client ID and Client Secret. I would like to save each individual item in the database as the following keys: instagram_client_id and ...
user avatar
  • 11
0 votes
1 answer
15 views

Allow users to give a dashboard widget a custom name using ACF

I want to use ACF (and CPT) to allow users to give a custom name to an admin dashboard widget from a settings page. In the below code, a widget would be created called "my title". If the ...
user avatar
0 votes
0 answers
17 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
1 answer
14 views

Can I have custom post types in "Add menu items" on in the Admin > Appearance > Menu

I want to easily add custom post types to my menus. I know that I can do it with a custom link but I want to make it as easy as possible for a client. How do have a custom post type selectable under '...
user avatar
  • 153
0 votes
0 answers
20 views

Possible to show in media library if images are being used as featured images?

Is it possible to make an admin column in the media library that will indicate whether or not an image is used somewhere as a 'featured image'?
user avatar
0 votes
1 answer
15 views

Live reload preview just reloads forever

There is a new preview feature on WordPress that looks like this: When it's clicked, it reloads the preview over and over and over again. Why would this happen? I tried disabling different plugins ...
user avatar
  • 113
1 vote
2 answers
97 views

Searching custom fields is removing search on the post_title column

I have the following custom search active in our WP admin for only administrators add_action('pre_get_posts', 'query_custom_admin_search', 21 ); function query_custom_admin_search( $wp_query ) { ...
user avatar
  • 288
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
2 answers
49 views

Can we change the hook firing sequence?

In admin, I need to fire the save_post action before firing the transition_post_status hook. But according to this, the transition_post_status fires first before the post is saved. How can I reverse ...
user avatar
0 votes
0 answers
18 views

How to remove the default checked attribute from inputs in admin?

How to remove the default checked attribute from inputs in admin? For example, this is (Send notification for user about account creation) how to remove the checked from here? Thank you
user avatar
0 votes
0 answers
9 views

Select input in metabox not updated

I try to figure it out why my select input did not update the value. I have placed the select input in the header of a metabox, the same what Woocommerce did with the producttype selector. ...
user avatar
0 votes
1 answer
47 views

Cannot create new posts or upload images using media manager

My WordPress website was recently moved from one a shared hosting provider to a VPS setup at Digital Ocean. I provisioned the server myself and have WordPress running on a LAMP stack with Linux Ubuntu ...
user avatar
0 votes
0 answers
50 views

Hide media library images from other roles uploaded by admin

Can this function (https://www.role-editor.com/forums/topic/hide-specific-images-or-images-by-specific-user-role-or-specific-user-id/) be updated to hide images from other users (but not admin) in the ...
user avatar
  • 976
0 votes
0 answers
16 views

Show metadata in users.php - wordpress

is there any way to show metadata in the list of all registered users "users.php"
user avatar
  • 3
0 votes
0 answers
16 views

In PHP how do I make my navigation bar show certain links to admins only?

My admin panel on my nav bar only shows to accounts with the username 'admin' as the moment, I would like it to search my USERS database and only show the link to userswith a user_level of 1. My DB ...
user avatar
  • 1
0 votes
1 answer
124 views

Maintenance mode excluding site administrators

I want to set the site into maintenance mode without using a plugin so that anyone who accesses the site who is not a site admin will see a "sorry site under maintenance" page. I created a ....
user avatar
0 votes
0 answers
20 views

How to create admin setting for this small plugin

I created this small plugin and I want to create a admin setting to change "product_id" in setting. How can I create that. add_filter( 'woocommerce_get_price_html', '...
user avatar
2 votes
0 answers
17 views

Get user id for delete and update selected user

I'm trying to create admin form which can perform user creation, update and delete from frontend, See attached i'm trying to update user from update button but i'm little confuse how to get id for ...
user avatar
0 votes
0 answers
22 views

remove "Edit" from select pages

I've had a good look around before asking this question so if it's already been cracked just point me in that direction! I've set up some custom core pages in order to work as "archive" ...
user avatar
0 votes
1 answer
1k views

New user form rejected because "passwords don't match"—but there's only one password field

I am trying to add a user to a blog of writings by or about my late father.  One of the articles is by my niece, but I cannot add her as a user.  The admin form only has one field for password, but ...
user avatar
  • 105
0 votes
0 answers
20 views

Gutenberg UI has changed

I'm building a new version of my site offline. I've exported/imported all my blog posts in and that seems to have worked. Only thing is, the layout of the Gutenberg editor looks horrible locally. Is ...
user avatar
0 votes
0 answers
27 views

WC Fix Attributes - 'Add New' Not Searchable/Delayed

Installed the WC Fix Attributes plugin Version 1.0 | By Tofandel as found here: Slow Loading Attribute Select - WooCommerce Backend Works a charm and really speeds up searching existing attributes 10 ...
user avatar
0 votes
1 answer
32 views

hide elements of admin with css file

i use woocommerce and woocommerce Product Vendors (https://woocommerce.com/products/product-vendors/) i want hide elements of admin with css file "my-admin.css" I put css file "my-admin....
user avatar
1 vote
1 answer
79 views

SQL Query to Update Admin Email

After pushing a staging site to production I have admin@example.test set as the admin email which I need to change. Obviously I can't access that email to verify the change because it doesn't exist so ...
user avatar
0 votes
0 answers
22 views

Woocommerce display orders with products from specific categories to specific admins

I am new at stackoverflow. I have a question about wordpress. I am building a wordpress site for some cinemas with movies. Each cinema is a product category. I want enable an admin cinema1 which will ...
user avatar
  • 1
0 votes
0 answers
42 views

Admin menu in different languages

My Wordpress admin language is partially in English and partially in Dutch. This causes some things (like events) to show in English on the site, which is not supposed to happen. I used 'admin menu ...
user avatar

1
2 3 4 5
35