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

learn more… | top users | synonyms

3
votes
3answers
2k views

Easiest way to make post private by default

I don't know how to make a plugin so I can't do what's suggested here How can I make it so the Add New Post page has Visibility set to Private by default? so what's alternative ?
0
votes
1answer
56 views

Edit a WordPress site without the username and password?

I am trying to edit a website for a client who had the website built for them a few years ago. They've given me access their website server, and I can see the website is using WordPress from the ...
1
vote
1answer
32 views

How to load an assets based on custom field value?

How can I load an asset based on custom field value? - This would be outside of the loop, all I can find for this is in the loop related functions, which I'm not familiar with, or what I find are ...
1
vote
1answer
26 views

Wordpress wp-admin suddenly lost its style

NB: I originally posted this on SO, but I was recommended to try here - sorry for the duplicate! I'm really baffled about this. In the last couple of days (since I was using the site last), my ...
4
votes
2answers
79 views

Add content in custom post type page after the title and before columns

I found here on WPSE that you can add content before post title in the post page, and in custom post type pages add_action( 'load-edit.php', function(){ $screen = get_current_screen(); ...
0
votes
1answer
31 views

Create a variable with string, array or multiple values

I'm running some functions that will allow a user to register their own custom templates to my custom theme from an external directory. They can see these page templates in the wp-admin and they ...
0
votes
1answer
27 views

Wordpress Child problem in admin

I created a child theme of Twenty Sixteen. It shows ok on the visitors' side, i.e. http://favrodsculpture.com. But in the admin, I can't upload images, can't log out etc... If I write a post, it does ...
4
votes
3answers
4k views

How To Remove WordPress Version From The Admin Footer

Is there anyway to remove version number from the right side of WordPress admin footer? I know this code will add some text before the version number, but it will not remove it: function ...
0
votes
0answers
9 views

Redesigning the add new post form

This is a learning exercise. I'm trying to redesign the form that is rendered when a user tries to add a new post via the administration panel. So far i've tried messing around in ...
0
votes
0answers
15 views

track logged in user link/clicks

I'm stumped here. I'm trying to track specific links on my site and report back time stamp of when a user clicked that link. These are for specific downloads and only registered users can access the ...
7
votes
3answers
6k views

Change page title in admin area

Is there someway to change the title in wp-admin? Been looking all over google but no one seem to mention it. I simply want to get rid of "— WordPress" and possibly change the "‹" into ...
1
vote
3answers
44 views

Detecting all admins that are logged in

I'm trying to find all users that are logged in to WordPress. I can detect myself, but I want to be able to find the other admins. Here is my current code to find myself. if (user_can( ...
27
votes
4answers
42k 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 ...
0
votes
3answers
422 views

Redirect from the dashboard to edit.php if wp_is_mobile() is true

Looking for a way to redirect the user from the dashboard straight to edit.php if wp_is_mobile() is true. This is what I've tried: function redirect_if_mobile() { $screen = ...
10
votes
8answers
23k views

Front-end Register Form

I'm looking for an easy way to place the user registration form on the front-end of a WordPress site. I've already used wp_login_form() to place the login form on the front end, but now I need to do ...
0
votes
0answers
56 views

“Trash”, “Draft” and count not showing for custom post type in admin panel

I have searched the internet and have also found some questions here with similar problems, but mine seems to be different. I have created a custom post type, and neither can I see the "Draft" and ...
0
votes
0answers
65 views

Create tabs in admin options page from custom post type loop

For a WordPress crm/password management plugin I am working on, I have created a custom post type called 'client'. I also have made a separate menu page for storing and showing the passwords of these ...
3
votes
2answers
194 views

AJAX requests broken due to HTTPS for wp-admin

I have my wp-admin section forced to HTTPS via a plugin. I also have specific pages that are using https on the frontend (login, billing, etc.) I seem to be having an issue with HTTP pages using AJAX ...
0
votes
2answers
112 views

Can't update database after wordpress update from 3.8.1 to 4.4.1

I have just updated wordpress 3.8.1 to 4.4.1. Tried to update in various ways: Before updating I have deactivated all the plugins and switched to the default theme provided by wordpress i.e. ...
0
votes
1answer
19 views

Problem with admin columns

The title is showing but the content is empty.. I tried following few tutorials time after time but i guess i miss something.. How can i get it to echo 'test' on each col please? // ADD NEW COLUMN ...
1
vote
0answers
27 views

Get First Child Page ID or Permalink in WordPress Admin

I have a navigation set where the content doesn't exist on the parent page, but rather on a page called Overview which is the first child of the parent. eg: About is the first level page, but when ...
0
votes
1answer
34 views

Renaming “Expand Details” within “Add Media”

I was wondering if it was possible that the "Expand Details" option via "Add Media" can be renamed? I couldn't find a guide online so I thought I would ask here for guidance, (that's if it's ...
0
votes
1answer
18 views

How do I change the WordPress Address URL only and still login to wp-admin

The story so far: I added a distribution on Amazon CloudFront (randomString.cloudfront.net), then added a cname (cdn.mydomain.com) and finally created a cname record on the DNS server - pointing ...
0
votes
2answers
4k views

Super slow admin panel

My admin panel in wordpress is super slow. I disabled all the plugins, I changed the theme to "Twenty Eleven" and I updated Wordpress. Still, the admin panel is very slow. I have 2008 posts and 6 ...
0
votes
3answers
41 views

I installed Wordpress locally now how do I login?

I downloaded a WordPress website that I am modifying for a friend. He gave me access to cPanel, where I downloaded the SQL and changed it on XAMPP. Now when I open >localhost/wp it opens the ...
0
votes
0answers
38 views

Admin panel specific page only with admin_head for 4.1?

<?php /* Plugin Name: Header Problem Demo Plugin URI: http://wordpress.stackexchange.com/questions/215190 Description: Shows how old admin_head-{page} method no longer works Version: 1.0 Author: ...
1
vote
0answers
37 views

From 403 error to 500 internal server error

I'm trying to install wordpress on a shared hosting (1and1), it's been 3 days i'm struggling and i give up, i've installed wordpress many times on other servers with no problem, first time on (1and1) ...
1
vote
1answer
28 views

add_page_menu to make shortcut to widgets

I want to make a menu button that takes me to wp-admin/widgets.php. The above code seems to work only partially. add_action( 'admin_menu', 'register_widgets_menu_button' ); function ...
0
votes
3answers
1k views

wp_dequeue_script not working in my plugin

There is a theme my client is using. It enqueues many scripts in the admin area of WordPress. I'd like to dequeue these so that my plugin works properly. Commenting out this code wp_enqueue_script( ...
0
votes
1answer
61 views

wp-admin 302 redirects

I have a new install of WordPress on my Mac mini server. The site uses SSL and has a valid up to date certificate from StartCom. The site loads, but with no CSS or theme. Mainly, I can't get into ...
23
votes
1answer
5k views

Is it possible to reuse wp.media.editor Modal for dialogs other than media

To expand: I'd like to utilize the same Modal code/appearance ( as used in wp.media.Modal, wp.media.FocusManager ) to open a modal of my own custom dialog, not the Media Editor. In the past, I've ...
0
votes
1answer
32 views

Set “Display Name Publicly As..” to be usernames by default

My Wordpress iste currently displays users' identifying information by their FIRSTNAME + LASTNAME. The vast majority prefer to be known by their usernames. I've instructed how to change their ...
1
vote
2answers
83 views

Custom WordPress Dashboard for Specific user role

I want to customize dashboard or 1st page when user login into admin panel. This will be for Author/editor where he/she will only see some tabs/button of the pages and posts, by click them he/she can ...
3
votes
2answers
3k views

How to obtain the user ID of the current profile being edited in WP-Admin?

Is there a way of obtaining the user ID of the profile being edited in wp-admin? I know it's in the URL if you are editing a user, EX: ./wp-admin/user-edit.php?user_id=427. Could always ...
0
votes
2answers
35 views

How do I link to a php file in my plugin directory?

Basically in the wp-admin section I have a page where I attempt to export some records from a grid. I have an Export link which leads to something like admin.php?page=download&selected_ids=1,2,4. ...
0
votes
1answer
31 views

How do I force a download in the admin area?

I'm doing an export function in my plugin but I cannot force a direct download. I get the error: Cannot modify header information - headers already sent Apparently at some point before my function ...
2
votes
5answers
3k views

Make sub menu items a main link in the admin menu using fuctions.php

I am trying to customize the admin area using the functions.php file to make things easier for my clients. One request I have got before and hope to be able to accomplish, is to move some of the sub ...
4
votes
1answer
3k 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 ...
6
votes
1answer
88 views

Link to specific Customizer section

I've got a site with a few extra Customizer sections. Is there a way to link directly to these so that section open when the page loads? Something like ...
0
votes
0answers
46 views

wordpress wp-admin showing white screen with no error

Suddenly my wordpress site wp-admin stop working. When I will try to access wp-admin it will display white screen. I have deactivated all plugin by rename plugin folder , also uploaded fresh wp-admin ...
0
votes
0answers
12 views

Different images in media while selecting different laguages

I have simple WordPress 4.3.2 site with Polylang plugin and Twenty Twelve theme. I found strange relation between images in Media and selected language. When I swich between languages while staying in ...
1
vote
0answers
8 views

Iframe being removed only for some users when publishing a page

I have multi site wordpress installation. Recently I had a user complaining about not being able to add frames to a page. When I did it it just worked. This user is administrator on this page. Is ...
0
votes
1answer
25 views

Admin - Dashboard - Unset recent comments

I try to get rid of the comments list in the WordPress 4 dashboard section but it doesn't work. Here is what I tried: function remove_all_dashboard_widgets() { global ...
0
votes
0answers
18 views

Add column into post table

I need to add a flag in table post to generate a custom feed rss with external webapp. I would checked some posts with a flag (when I create a posts or when I edit them) and then I perform a query to ...
0
votes
1answer
42 views

Delete the “wp-admin” folder - what could go wrong?

I would like to pass on a website to a client, but he is not paying for the CMS backend. Could I just remove the wp-admin Folder and just use the front-end of wordpress? Could there go something ...
1
vote
1answer
71 views

Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]

I have registered a custom Post Type via register_post_type(), and about 45 Custom Fields via add_meta_box() function, within the theme. Custom Post Type Args: 'labels' => ...
0
votes
1answer
49 views

Change post-slug using wordpress API? Change permalink of a post using php / jquery?

When calling wp_insert_post() see api there seems to be no possibility to set the post slug / the post permalink of the new entry. e.g. is there a way to check if: a string is possible to use as ...
-1
votes
1answer
55 views

“Are you sure you want to do this?” when deactivating all plugins in Wordpress 4.3.1 [closed]

Wordpress version 4.3.1, running in network mode. Logged in as super admin. In the main site's dashboard. When I try to deactivate all active plugins at once, I am taken to a white screen with the ...
0
votes
0answers
40 views

How to add mp3 uploader as custom field in custom post type? [custom-post based plugin ]

i'm developing a plugin which is based on custom post type. i want to upload mp3 file with each new post which is my custom post. for that, i have to upload mp3 file and some meta info of mp3 file. ...
1
vote
1answer
21 views

How to customize core admin pages within a theme?

Say I'm building a WordPress theme, and when this theme is active I want to display customized versions of some admin pages. Let's suppose I want a custom "Widgets" page: I can find the template for ...