Questions tagged [wp-admin]

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

Filter by
Sorted by
Tagged with
139 votes
17 answers
106k views

Adding a Taxonomy Filter to Admin List for a Custom Post Type?

I have created a Custom Post Type called 'listing' and added a Custom Taxonomy called 'businesses'. I would like to add a dropdown list of Businesses to the admin list for the Listings. Here is what ...
Taras Mankovski's user avatar
103 votes
7 answers
277k views

How to check if a user is in a specific role?

I have a pretty specific requirement to show different text in a field label on the user profile page based on the current user's role. I can't seem to figure out how to check whether the current use ...
jessegavin's user avatar
  • 3,446
77 votes
13 answers
84k views

Can I rename the wp-admin folder?

Is it possible to rename the wp-admin folder? I know I could just rename it, but unless it's supported by the code lots of things would break. If I use a custom folder name, it will make it slightly ...
Adam Dempsey's user avatar
  • 1,050
24 votes
7 answers
19k views

Change the text on the Publish button

Is there a way to change the text of the publish button on a custom post type to say some different? For example, Save instead of Publish. And also remove the draft button?
Paul Sheldrake's user avatar
8 votes
1 answer
15k views

Export data as CSV in back end with proper HTTP headers

I wrote a plugin that displays all products in a woocommerce store in admin settings option, now I want to add a link to download the products as CSV file. The problem is, when I click the link I get ...
Yekhezkel Yovel's user avatar
67 votes
2 answers
113k views

How can I add an image upload field directly to a custom write panel?

I've added a new page under "Pages" in the wordpress admin, and added several custom fields. I'd also like to be able to add an upload image field to the page editor - is there some way to do this via ...
Will's user avatar
  • 893
18 votes
2 answers
7k views

Toggle admin metabox based upon chosen page template

I'd like to have a custom field interface show up only when a certain template is assigned to a particular WordPress page. Any ideas?
Jonathan Wold's user avatar
72 votes
9 answers
74k views

How do I Enqueue styles/scripts on Certain /wp-admin Pages?

I have two simple functions that load stuff using wp_enqueue_style() and wp_enqueue_script(), something like these: function admin_custom_css() { wp_enqueue_style( 'stylesheet_name', 'stylesheet.css')...
Wordpressor's user avatar
  • 5,041
52 votes
7 answers
106k views

How to remove admin menu pages inserted by plugins?

I've got the following code, which cleans up a lot of stuff that is not going to be used within the admin area: add_action( 'admin_menu', 'my_remove_menu_pages' ); function my_remove_menu_pages() { ...
tmyie's user avatar
  • 863
15 votes
2 answers
13k views

do_shortcode() within Admin Page

I'm using a few plugins that have shortcodes ... however, instead of creating a public page for the content, I've created some new pages within the admin using add_menu_page and I need to know how to ...
dcolumbus's user avatar
  • 637
59 votes
6 answers
117k views

Adding custom columns to custom post types

I've done this previously but I've forgotten the name of the hook, and can't find it anywhere... What I'm trying to do is add some custom columns in the listing of a custom post type in the admin. ...
Chin Leung's user avatar
31 votes
6 answers
39k views

Changing the Order of Admin Menu Sections?

I am getting a bit frustrated over here after having spent a few hours trying to accomplish this fairly simple task without any luck. Essentially I have 5 custom post types which I created and all I ...
Binarybit's user avatar
  • 413
10 votes
1 answer
5k views

Filtering the Admin Comments List to Show Only Comments from the Current User?

In the Comments page (/wp-admin/edit-comments.php), every logged in user can see all the site comments. I'd like the users to see only his/her own comments and the comments that are left to his/...
moonvader's user avatar
  • 322
9 votes
3 answers
44k views

How to redirect/rewrite all /wp-login requests

Is there any simple way to have wordpress, php or apache rewrite all urls which involve /wp-admin to /admin? I have added this entry to my .htaccess file: RewriteRule ^admin /wp-login.php [L] ...
NetConstructor.com's user avatar
109 votes
8 answers
78k views

Organizing Code in your WordPress Theme's functions.php File?

The more customization I make to WordPress the more I start thinking about if I should be organizing this file or splitting it up. More specifically, if I have a bunch of custom functions which only ...
NetConstructor.com's user avatar
50 votes
6 answers
93k views

Changing Admin Menu Labels

I have spent the last day using the functions.php file to fully customize WordPress for my client sites. I am amazed at how much I have been able to accomplish and how much easier it will make things ...
Adam's user avatar
  • 565
20 votes
8 answers
12k views

Disable dragging of meta boxes?

Anyone know how to disable this functionality so the meta boxes can't be repositioned?
fxfuture's user avatar
  • 1,337
7 votes
6 answers
4k views

Best way to present options for home page in admin?

I have a site with a custom home page, home.php. What's the right way to present the editable home page options in the admin tool? For example, there's a few custom text fields on the home page that ...
Eric's user avatar
  • 282
6 votes
1 answer
4k views

Custom column for changing post status via ajax

I'm currently trying to implent a new custom column at the page manage screen that will let me change the status (published/pending) of the different pages via an easy toggle link. From what I've ...
INT's user avatar
  • 1,281
3 votes
2 answers
3k views

Add column to pages table

Hey all i am trying to find the section within the edit.php page where it populates the table with all my current pages. What i want to do is add another colum to the table in order to launch a side ...
StealthRT's user avatar
  • 183
3 votes
1 answer
6k views

Hide a page in the admin end without a plugin?

I'm creating a series of pages with iFrames embedded in them, but it seems the only way to do this within Wordpress (i.e. using the templating system) is to create pages in the admin end and then ...
Osu's user avatar
  • 1,442
34 votes
6 answers
42k views

Is there ANY way to remove comments function and section totally?

I don't want any comment querys to run. I don't wont anything about comments to be shown in wordpress admin area. Is this possible in any way? EDIT: Remove all links to the comments from admin bar, ...
Peter Westerlund's user avatar
26 votes
3 answers
33k views

How do i best handle custom plugin page actions?

I'm constantly running into the same annoyance, so i thought i'd see if there's any ideas or experience out there... I've created a plugin that uses it's own admin page. It has to. Now that i sorted ...
wyrfel's user avatar
  • 3,075
20 votes
1 answer
30k views

Setting $_SERVER['HTTPS']='on' prevents access to wp-admin

First off my server is sitting behind a load balancer. My SSL certificate sits on the load balancer and handles HTTPS. The data coming in on port 443 is forwarded to the Wordpress server using HTTP ...
nu everest's user avatar
14 votes
5 answers
12k views

How to search all user meta from users.php in the admin

The search form at the top of the users listing in the Admin area (wp-admin/users.php) is limited and does not search all of the user meta fields, such as bio, instant messenger handles, etc. I've not ...
John Chandler's user avatar
13 votes
1 answer
27k views

Changing the 'wp-admin' URL to whatever I want

Is there a plugin that allows me to change the url of domain.com/wp-admin to domain.com/whatever-iwant ? Curious if there is an easy solution to this by now.
Zach Smith's user avatar
12 votes
5 answers
31k views

How can I remove the "Add New" button in my custom post type?

I have many custom post types that need the Add [custom post type] feature but I have a custom post type of "About" and I do not need to "Add New" about to the about custom post type. So I want to ...
Lucas Santos's user avatar
10 votes
6 answers
40k views

How to prevent access to wp-admin for certain user roles?

I did try using the plugin Front End Users but this clashes with something as it prevents access to some front end pages. So I need to manually just set it so that anyone who isn't one of two ...
Claire's user avatar
  • 342
6 votes
6 answers
18k views

Disable image attachment links

Is there a way to disable image attachment links trought a filter in functions.php or something ? I know it's possible to do it manually when you add an image to a post but I want to disable this ...
inwpitrust's user avatar
5 votes
1 answer
2k views

Admin Filter - Add Post Type Description on Post Type Page

WordPress allows adding descriptions to Custom Post Types whenever it's registered. ( register_post_type(). I would like to output that title on the Admin Landing Page ( View All Post Type ) ...
Howdy_McGee's user avatar
  • 20.6k
5 votes
1 answer
1k views

Highlight custom widgets in the admin area?

I have created some custom widgets for my client to use, but I want to make them stand out amidst the fifteen or so standard widgets in the admin area. How can I do this? I have solved this problem ...
Jan Fabry's user avatar
  • 30.4k
4 votes
2 answers
5k views

How to add notification bubble for my custom admin menu page

I created my own contact form and I'm using WP_List_Table to display submitted forms in wp-admin. I edited this example WP_List_Table from github and it works fine. This is how I add my custom admin ...
wpdev's user avatar
  • 539
3 votes
2 answers
4k views

Admin Bar (Toolbar) not showing on custom PHP file that loads WordPress

I've made my own PHP page and used it as a part of my WordPress website. I'm using some WordPress functions and want to have it fully integrated with WordPress itself. Although I've loaded WordPress,...
jmeinlschmidt's user avatar
3 votes
1 answer
1k views

Hide page visual editor if template is selected - redux

The answer given to a previous and identical question is unfortunately not working on my WP install. I'm using a version of the function recommended there. function nim_hide_editor() { $post_id =...
nimmolo's user avatar
  • 41
2 votes
1 answer
13k views

how to create my own edit.php admin page code or template for my custom post type

Most plugins try to hide the components of the edit.php screen on wp admin and replace it with meta boxes to create the needed layout and fields for the custom post type. But this means that there is ...
alhoseany's user avatar
  • 1,201
2 votes
4 answers
9k views

Removing admin bar from wordpress dashboard

I'm using wordpress multiste 3.3.1 I'm not gonna update it in the future. So I disabled all upgrade functions. I want to remove the wordpress admin bar from both frontend as well as dashboard. I can ...
PrivateUser's user avatar
  • 3,459
2 votes
3 answers
18k views

Display posts of only a certain category in WP Admin section?

I want to add a new menu point to post that shows posts of a certain category. Adding a new page is easy if it is just a new post type. But I want to only show posts with a specific category and when ...
Arnold Rimmer's user avatar
1 vote
5 answers
6k views

Plugin Development: Wordpress processes twice on post update. How to skip process on the first?

When you create a plugin and set up a process function, Wordpress will run the plugin process function twice upon clicking the update button. I believe the first process is for the versioning (...
Exit's user avatar
  • 319
0 votes
1 answer
846 views

Filters 'request' and 'parse_query' not firing in sites.php nor link-manager.php

I'm trying to make sortable columns in Sites and Links listings admin pages. /wp-admin/network/sites.php and /wp-admin/link-manager.php The problem is the following filters are not firing up in ...
brasofilo's user avatar
  • 22.1k
0 votes
3 answers
586 views

Increment Page Order As Pages Are Created

In the Admin Panel, is there a way to hook into the page creation and increment Page Order number of each page or to be equal to the number of pages. Right now the default is 0 and when I make a new ...
Howdy_McGee's user avatar
  • 20.6k
41 votes
3 answers
110k views

adding custom stylesheet to wp-admin

im having troubles getting my custom stylesheet work on WP-ADMIN area. plugins_url('style.css', __FILE__) ); do i have to create folder in my plugins named css or do i just copy my .css to the wp-...
user1933824's user avatar
37 votes
7 answers
42k views

Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?

The question is "How do I add one or more fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?" This question was asked on the wp-hackers list August 1st 2010 and I ...
MikeSchinkel's user avatar
  • 37.5k
30 votes
3 answers
125k views

What's the easiest way to stop WP from ever logging me out

After a certain amount of time WP logs out all users and forces them to log back in again. For development environments on my local machine this is obnoxious and absolutely unnecessary. Is there an ...
jerclarke's user avatar
  • 3,043
29 votes
5 answers
30k views

How to add an admin notice upon post save/update

I have a post type the uses post_save to take the address from the post-meta and retrieve the lat/lng coordinates from the Google API. I need a way of notifying the user if there was an issue with ...
Jason's user avatar
  • 403
22 votes
3 answers
57k views

Admin Page Redirect

Is it possible to redirect users to an admin page if they access another admin page? For example if they a user ever hits "all pages" /wp-admin/edit.php?post_type=page they would get redirected to "...
Shae's user avatar
  • 731
20 votes
8 answers
27k views

How to restrict dashboard access to Admins only?

How would we restrict access to the WP admin area to all users except admins? The users on our site have their own profile pages which do all the functions they need. So admin should be off limits to ...
Robin I Knight's user avatar
18 votes
5 answers
67k views

When moving a WP site, why does wp-admin redirect to old site?

I am in the process of moving a WP site from one host to another. I copied the database and all the files, created a new database and imported the old one. I then changed the wp-config file. The home ...
forrest's user avatar
  • 483
16 votes
7 answers
18k views

Loading External Scripts in Admin but ONLY for a Specific Post Type?

So I continue to run into this issue and I just looking for the best and simplest solution to solve this problem. I have come to make use of custom post types in many different projects and have ...
NetConstructor.com's user avatar
16 votes
9 answers
36k views

Adding fields to the "Add New User" screen in the dashboard

I'd like to add the field "Company Name" to the add new user page in the admin panel. I've done quite a bit of searching and have been unable to find details on how to do this. I can easily add info ...
Zach Shallbetter's user avatar
12 votes
2 answers
5k views

How to remove the core embed blocks in WordPress 5.6?

Following up on this question, I want to remove some of the default (core) embed blocks in the WordPress block editor. As of WordPress 5.6, the blocks are no longer available under the core-embed/* ...
Sven's user avatar
  • 3,624

1
2 3 4 5 6