Questions tagged [admin]

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

353 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
2k views

Settings API - adding setting fields dynamically?

Is there a way of adding settings fields dynamically? I have my own Settings API options generator just like in Chip Bennet's Oenology Theme, everything works perfect but I can't find a way to create ...
4
votes
1answer
3k views

Ordering posts by custom taxonomy in admin area

EDIT @kaiser - this question is slightly different to the answer you posted in that I am talking about sorting by clicking the column title rather than adding a dropdown to filter by taxonomy term (...
4
votes
1answer
1k views

Admin Area Custom Type Search By Meta Fields Without Title & Content

I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code: ...
3
votes
1answer
2k views

initial sort order for a sortable custom column in admin

I have created a number of 'views' column in the admin area of my posts. There are several tutorials for this and I did in fact use a number of these to arrive at my end result. It works as expected ...
3
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 ...
3
votes
1answer
103 views

Adding Field to Profile “Name”

I am trying to add an extra field or two underneath the "Name" or "About" section in the Wordpress user profile. So far I have only been able to accomplish this by: //Begin add_action('...
2
votes
0answers
73 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
0answers
469 views

Searchable meta value in user.php

I have created a new column in the user table list (admin page) and would like the column to be searchable in the search query, How do i add the meta to the search users query ? /** * Create user ...
2
votes
2answers
675 views

What are WordPress admin supported browsers?

I am developing a plugin which exposes custom client components, html/css in the admin area. I want to test the cross-browsing compatibility of these components sticking to the actual browsers ...
2
votes
0answers
685 views

Add tab to profile.php wordpress plugin development

I already know how to add an extra field in user profile. But in my case I have A lot of field to add and It is good practice that your form is not too long. So I decided to implement tab panel in the ...
2
votes
2answers
127 views

How do I remove the entire left nav bar in admin for certain level users?

I know how to remove items from the left nav bar (hook into admin_menu and do global $menu; unset( $menu[ __( "Posts" ) ] ); for example). But it still shows a left nav bar (with nothing on it). I ...
2
votes
0answers
372 views

Refreshing collections in the admin media manager

I know this question is very similar to this previously asked question; however, I was wondering if there was a more up-to-date/official way to refresh content programmatically in the WordPress admin ...
2
votes
1answer
597 views

Is it possible to hook AJAX to UPDATE-button?

I have a site with a custom post. When I enter that custom post in admin (edit)-page then a form is rendered. This form takes like about 2-3s to render - it's a lot of of values in it - both hidden ...
2
votes
0answers
749 views

Include admins in author drop-down on edit post screen

In the back-end when editing a post there is a dropdown to select post author which is populated by registered usernames. But, users with an admin role do not appear in the list, there is an "Admin" ...
2
votes
1answer
208 views

Hide upload image fields for the different media upload popups

I am trying to change a few of the options in the Set Featured Image popup in the Wordpress admin. I can't seem to find anything that determines if the popup window is a Featured Image or an Add Media ...
2
votes
1answer
149 views

What filter/action hook can I use to add a few links to the admin comments page?

I would like to add a link to every comment when it's displayed in the recent comments admin page (edit-comments.php). For the sake of this question, the link should just be this: <a href="mailto:[...
2
votes
1answer
690 views

WordPress Ajax callback function from plugin - OOP

Using PluginBoilerplate to write a plugin. I need to make an ajax call. I added to main plugin.php file, class to register scripts and handle ajax calls. if ( ! class_exists( 'PoorMansNameSpaceAJAX' ...
1
vote
0answers
22 views

Limit entries number on network/sites.php

in order to limit the memory usage of my page, I need to limit the entries number on the page sites.php (for network management) I tried to a filter with $pagenow == sites.php but that didnt work. I ...
1
vote
1answer
13 views

How to allow an editor to edit all WordPress blog posts but have the last say as administrator?

I run a simple WordPress setup hosted on SiteGround with no staging area and no special roles. The blog grew so much over the last few years that I barely write any content anymore. I send a content ...
1
vote
0answers
24 views

Options page - dropdown of users

I want to create an options page in WPAdmin that will let me select among registered post type "Members" and anoint them as "captains". Here is my code so far but the dropdown is not functioning ...
1
vote
1answer
398 views

WooCommerce: Add New Report Tab

I have a project for a school. The seats in the class are sold as variable WooCommerce products and student info is captured at checkout. I want to put a new tab in the Reports section of ...
1
vote
0answers
31 views

Move 'current-menu-item' class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen

I've created a custom taxonomy called 'venuecategory' that is hidden by design(not attached to a CPT and does not appear in admin menu). When I'm on this taxonomy's admin page ('wp-admin/edit-tags....
1
vote
1answer
15 views

Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically

For internal purpose, I'm looking for to convert (-) and (escape) sign to (_) automatically when we upload a file (photo,video,audio) on WordPress media library. Example: If i try to upload this 2 ...
1
vote
0answers
8 views

Admin - Handle data before creating or updating a post, page or custom post

I need to make some checks of the aggregated data in a page form, a post and a custom post, before these are created or updated, "if it is possible to do it with specific taxonomy", and if the user's ...
1
vote
0answers
30 views

Can't locate a hidden private page

I have 9 published page, and 1 private (invisible) page, in total 10 pages. However, my wordpress says that there are (2) private page, and total of (11) pages. How can I locate the unseen page?? FYI,...
1
vote
0answers
20 views

WordPress ACL (folder + permissions)

For certificate a web platform created with WordPress, they ask me to provide a snapshot of ACL maintained on application / configuration folder. Screenshot must clearly show who all have access to ...
1
vote
0answers
52 views

Plugin dependencies: show notice like theme plugins dependencies

I've developed a plugin that its core doesn't rely on any external plugin but there is some functionality that can be unlocked if others plugins are active. What I would like to achieve is to display ...
1
vote
0answers
33 views

How to show empty category in admin menus search

This is the my screenshots please guide me that how to we can search empty category in admin menu.
1
vote
0answers
181 views

Multisite User cannot access dashboard

I am dynamically creating a new blog which sets a newly created user(this user is created in woocommerce) as the main site admin. However when the user trys to login into the dash the following error ...
1
vote
0answers
163 views

No Permission to add new Page, Post or CPT with Admin role

After a server update, I got some problems on my website, running WordPress 4.9.2 I could not update WordPress version to 4.9.4, cause I was getting a message like this: Another update is ...
1
vote
0answers
109 views

Wordpress wp-admin/network/plugin-install

I am having issues that seem to be related to trying to change a multisite installation to use www. The site was initially setup without the www. I added code to .htaccess to redirect all urls to ...
1
vote
1answer
756 views

Role - edit page but not publish

I am pretty new at Wordpress.. So I have this problem: I need a user role that has the rights as a contributor but for pages. As I have no posts in my website the users will have to edit pages. Every ...
1
vote
0answers
266 views

How to add custom classes to admin list table default rows or columns?

I usually add columns to admin tables for various tasks. This time I'd like to keep defaults but add classes to them. Is it possible in some way? I took a look to available filters and to the ...
1
vote
1answer
346 views

How to set add question capability for author role in wp pro quiz plugin

Wp pro quiz has no option to let other user roles to add and edit quizzes and questions other than admin. In the lib/helper/WpProQuiz_Helper_Upgrade.php I saw this code, private static function ...
1
vote
2answers
2k views

Add a custom column in users list page

I need to hook to the users list page. I Need to add a checkbox column for each user to remember if they have paid or not. Thanks for help because can’t find snippet to hook to this admin page.
1
vote
0answers
382 views

running wp-cron.php using php not wget

I operate some servers which have a few WordPress websites on them. I was having some issues with the cron jobs being triggered too often or not enough so I replaced all of them with crontab entries, ...
1
vote
0answers
188 views

Problems with WP_List_Table and hooks

I'd like to use the WP_List_Table in my plugin, so I followed the guide of WP-Engineer to create the WP_List_Table. His version of the code is available on GitHub: https://gist.github.com/Latz/...
1
vote
0answers
45 views

Display popup or admin-notice after add new categories

I need to display an admin notice or better a js popup after adding a new category. In my functions.php I've created 2 functions: add_action('create_category', 'popup_reminder_caller'); function ...
1
vote
0answers
554 views

Attachment display settings only allows “full-size”

I have been developing a site using the Twenty-Sixteen theme. I just realized that I only have the "Full Size" option when I insert an image to a Page or Post. I've only found one question here on ...
1
vote
0answers
40 views

Get a listing of portfolio items and categories

On my website I maintain a list of links to cases we’ve worked at. The cases themselves contain descriptions plus two small lists, showing who worked on the case and what other cases exist in the same ...
1
vote
0answers
23 views

Activate Gallery Options in Media Uploader for Custom Usage

I am using "wp.media" javascript function for uploading media files. But how to active/add "Gallery" option for custom purposes?
1
vote
0answers
96 views

warnCommentChanges always being triggered on update

I am developing a course using WPLMS and have an annoying problem with one of the WPLMS custom page types (units). Here is a link to a thread I posted on the WPLMS support forums, but they can't ...
1
vote
0answers
32 views

Admin Column does not populate with data

I am new to coding and struggle with the following code. My plan was to add a column to the admin page of a post list. I managed to add the column but struggle with adding the relevant data. Here is ...
1
vote
0answers
68 views

Remove bulk option row

How can I remove bulk actions section from post and page lists pages on wordpress I tried with following code in functions.php as suggested on another thread but it does nothing add_action( '...
1
vote
1answer
38 views

Edit Auto Update Admin Notification

I'm new on stackexchange.com and hope to get some help for my topic. If a WordPRess website uses auto update the admin gets a notification, after the auto update is done. My goal is to change the ...
1
vote
0answers
653 views

Button inside Custom Meta Box triggering the Update Button

I have a custom meta button that adds additional custom meta fields inside the custom meta box. This meta box, in particular, gives me a choice to enter a particular skill and rate my own ...
1
vote
1answer
574 views

Get post attached image to display in admin dashboard

I've searched awhile for a solution on how to get the attached image in the post's editor to display within the dashboard but I am running into an issue. I've seen how to do this and can do this with ...
1
vote
0answers
339 views

Programmatically create page when saving custom post type post

I want to create page when saving new post on my CPT and i want it to be created only when first saving (by pressing Publish button) that post, not when i click Add new (it then saves the post first ...
1
vote
0answers
401 views

Unable to Access WP Admin or Login buttons after Migration

After migrating from IIS server over to CentOS, I am having a hard time logging into my admin. When I did manage to login it said the User had no permission to login into WP Admin so it was the ...
1
vote
0answers
77 views

Add 'Last Modified' and Attachments (Yes/No) to WordPress Users Column

I was wondering if someone can put me on the right path in regards to adding additional columns that show the last modified date and if a user profile has attachments. Ideally I'd also like to be able ...