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

learn more… | top users | synonyms

1
vote
1answer
84 views

Unit testing in the WordPress backend (is_admin() is true)

I've asked this on IRC, Twitter, Slack — am utterly astonished by how difficult it is to locate the answer to this: I have a bunch of plugin code that only runs when is_admin() returns true, i.e., ...
0
votes
0answers
128 views

Get URL of current featured image with JS in edit post view

Is it possible, somehow, to fetch the URL of the currently set featured image when you're in the edit post view? So far I've looked at fetching via jQuery such as: var url = ...
0
votes
2answers
1k views

Admin top level menu, pointing to an external url

I want to create a entirely new top level menu in the admin menu section, and have that be an external link, is this even possible with the current system? The solution that t31os provides in this ...
0
votes
0answers
31 views

Changed site from HTTPS back to HTTP broke site

I have changed my site to https and now I can't log in. I can't use as admin the site. When I click to open site it says: This webpage is not available ERR_NAME_NOT_RESOLVED. What should I do?
0
votes
0answers
12 views

No plugin and theme installation possible

I just installed the most recent Wordpress on a server. Installation went fine, I can login the dashboard. However, I cannot download any plugins or themes. First, I thought it was a permissions ...
1
vote
1answer
319 views

Redirect non-admin users away from wp-admin/index.php (main dashboard page) to wp-admin/profile.php

I've set it so non-admin user can't see the "Dashboard" link or can't have access to the main "wp-admin/index.php" page. I've also added a plugin that restrict non-admin users from creating a new ...
0
votes
2answers
145 views

Allow SVG in WP step by step

I'm not strong in WP programming, bu I try to understand what to do to enable SVG in my site. I found that in need to add function below to functions.php: /** * Add SVG capabilities */ function ...
0
votes
1answer
31 views

Echo string in admin panel footer beside version no

can anyone help me out about how to showing something lets say "Hello World" beside the version no that shows up in the wp admin dashboard footer? I've already tried the action named admin_footer and ...
0
votes
0answers
24 views

The same picture looks different in different WP sites with the same theme

I have pictre shown below that looks differently when I place it to different sites that are created on the same theme: In site No1 it looks normal, like in my question body: In site No2 ...
0
votes
0answers
132 views

Cannot login in Wordpress even after changing hash password in phpmyadmin

An hour ago I changed the password of my Head Admin user. But after this I was not able to login anymore. So I have tried to reset the password in PHPmyadmin with the md5 encoding and even with this ...
6
votes
6answers
11k 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 ...
2
votes
4answers
1k views

Using the loop inside admin

I have the following issue: I am creating a custom-meta-box for the user to add custom fields in a friendly way. I want to generate a drop-down box with all posts that fall under category 10. I have ...
0
votes
0answers
75 views

set cookie before log out and after admin login

Hi I am new to wordpress. I had researched lot about this but didn't succeed. I want to set cookie value NULL before logout and custom value after admin logged in. So I put below code in ...
1
vote
1answer
47 views

How do I host Wordpress on a hidden domain through a reverse proxy?

I have a reverse proxy for http://www.xxxx.com/guides/ pointing to Wordpress on another domain. I want to edit and administer it via the other domain, but I don't want the contents to be publicly ...
0
votes
0answers
52 views

Adding custom OGP meta tags stops wp-admin redirecting to wp-login.php

I tried to use custom OGP meta tags in my theme's functions.php file. I followed the method described here; I literally copy pasted the code. After adding the code into my theme's functions.php ...
5
votes
2answers
9k views

Remove “posts” from admin but show a custom post

After checking out: http://codex.wordpress.org/Function_Reference/remove_menu_page, I successfully use the following code to hide some stuff from the menu: add_action( 'admin_menu', ...
0
votes
0answers
29 views

Removing options from attachment details

In the image gallery section of my Wordpress admin, when I click on an image I get something like this: My site allows multiple users to add images and I feel that most of these fields are ...
0
votes
0answers
20 views

Add custom option to admin menu wordpress

I need to create a new option in my wordpress admin menu, I know I can create this using add_menu_page() but what I specifically need is an option to 'Add Property', which has similar options in there ...
0
votes
1answer
123 views

Order by modified date working in POSTS but not PAGES

I found the following code at bytefreaks.net. It adds a sort-able column to edit.php, but the column appears only on Posts and not on Pages (...?post_type=page) bytefreaks suggested putting it in ...
6
votes
5answers
6k views

Use a different domain for SSL

long time lurker - first time poster. A client of mine has a website developed in CakePHP, and a wordpress blog installed in the /blog/ directory. Let's say the url of the main domain is ...
0
votes
0answers
186 views

WooCommerce order bulk edit with custom hooks in function.php

I'm working on a Wordpress site with WooCommerce. I have to implement some additional functions, one of them is some simple operation after marking the order completed. I use ...
0
votes
0answers
75 views

Why is the Dequeue Not Working For All Plugin Styles and Scripts?

I'm trying to increase the load performance a with more sensible loading of admin scripts and styles. I am dequeueing and deregistering scripts and styles where they don't need to be loaded. I've ...
0
votes
1answer
124 views

Backend freezing on certain pages of a subsite

I recently made an existing website into a WordPress multisite, and then added a new site as a subdirectory. Note: All of this only occurs in the one subsite. The first problem was that no scripts ...
0
votes
1answer
75 views

wp_nonce_url to users.php for deleting user not working

Using wpjobmanager plugin for my site gojobr.com.au : I've encountered a problem: to combat spam users that keep posting the same spammy jobs (they are doing so manually so no a captcha won't solve ...
0
votes
1answer
28 views

I cannot access my WP website after changing settings

I have broken my website. I went into the general settings in the Dashboard and changed my site URL from www.therealdeal.org.uk/newsite to www.therealdeal.org.uk. I left the Home address as ...
0
votes
0answers
27 views

wp-admin search posts by title only and show sub pages

I've got a custom post type that in the CMS I would to be able to alter the search so it only searches by title of the post, then also pulls through all sub pages of that page. Currently I have the ...
0
votes
2answers
118 views

Making menu link open in new tab?

I'm trying to add a top level menu to the left sidebar of the WordPress admin panel. Here's the code I currently have: add_action( 'admin_menu', 'linked_url' ); function linked_url() { ...
0
votes
0answers
32 views

Next and previous page buttons in wp-admin don't work

I have a problem I have never seen before. For some reason the next and previous page buttons in my wp-admin are messed up. Everything is working just fine on the website except for those buttons. The ...
0
votes
0answers
48 views

Super Admin unable to access appearance/customize.php on multisite

Basically when I am on my main site, in the admin area, my url is site.com/wp/wp-admin, when I try to navigate to the theme customize page I get the "Cheatin, uh?" message. On my second site I am ...
0
votes
0answers
34 views

why automatically folder is created on WP root and under wp-admin folder?

When I refresh my site then new folder with strange name is automatically created on root and under wp-admin folder: This folder is automatically created ...
3
votes
3answers
2k views

Use tag interface for hierarchical taxonomy?

Custom taxonomies are great. I registered a bunch of new taxonomies and wrote an importer to import our hierarchical taxonomy into WordPress a la XML. The problem is one taxonomy has about 1,100 terms ...
1
vote
2answers
12k views

My wordpress site gets redirected automatically to the old site any known solution for this?

I had recently moved my wp site from a domain to other, but when I type in the new domain's address it gets redirected to the old domain/some_page. Is this any common problem? Is there any known ...
2
votes
4answers
3k views

Completely disabling widgets

How do I completely remove widget support from a theme/plugin ? Like removing the appearance -> widgets page, and prevent WP from loading widget classes and all widget-related stuff.
3
votes
1answer
3k views

How do you create a custom edit.php / edit pages page

I need to create 3 custom edit.php pages which only display pages with a certain parent and the Post New button links to a new page with the corresponding parent. The closest answer I can is do not ...
0
votes
0answers
170 views

Pre-populate Woocommerce Order items with fees in admin

I cannot seem to get this down, I only have experience with editing Woocommerce templates and not anything in /includes/. The goal: Add 5 empty fees in the Woocommerce Order details admin area ...
2
votes
1answer
203 views

How to check if I'm on a custom post type archive in the admin area

I am trying to alter the query that's ran on the admin page of my custom post type. This page: /wp-admin/edit.php?post_type=my_venue. Typically, I would use is_admin() && ...
0
votes
1answer
54 views

Where is wordpress redirecting wp-admin/admin/dashboard to wp-admin and how to turn it off

I mean when we have subdirectory install and /wp-admin/ is not referencing to directory wp-admin, but wordpress stills redirects and not just for wp-admin slug but also for admin and dashboard and ...
0
votes
1answer
14 views

Widget page stopped loading

I'm currently having an issue with the widgets page in the backend. however I'm having a heck of a time identifying what's break the page. I've found there are 3 widgets that when removed from the ...
1
vote
1answer
34 views

How to set custom editor style when editing the homepage?

I would like to get html class names same way get_body_class() works but on the admin side. I would like to change body class names of TinyMCEs iFrame element to allow specified editor-styles.css ...
0
votes
2answers
1k views

Displaying which Role the current user is assigned to

Is there a section on the admin panel of my WordPress installation which just displays what role the current logged in user has? For example, I know I have administrator permissions because I know ...
0
votes
0answers
18 views

Edit category without leaving the page

When we edit the category by admin panel, we left after saving the page. To avoid this? I want to edit the category and continue after saving it.
0
votes
0answers
8k views

Uncaught TypeError: undefined is not a function (shortcode-box)

I have a Wordpress theme that the author is no longer maintaining, and has stopped functioning properly with the update to Wordpress 3.x. Over the past few months, I have been working to resolve the ...
1
vote
2answers
3k views

How to enable a site administrator to edit users in a WordPress network/ multisite setup?

I have a few sites in a network. I don't want the site administrators to manage things like network plugins, but I would like them to be able to edit profiles of all network users, not use those on ...
0
votes
1answer
27 views

Admin section showing CUSTOM Permalink structure thus resulting in permission error [closed]

Used a plugin and it has pagination in backend but the pagination structure is taking custom permalink structure thus it is resulting in permission error when we click on paginations, ...
2
votes
1answer
3k views

how to use thickbox in admin?

I would like to show my retrieved content form my classes method in thickbox. How could I do this? I have been adding the proper id to my desired hyperlink but all of the admin body is getting parsed ...
1
vote
2answers
2k views

How to Remove ALL Widgets from Dashboard?

I'm looking for a complete blank Dashboard. No widgets at all and preferably one column. There are snippets to remove the default WordPress widgets, but haven't found nothing about the ones added ...
0
votes
0answers
342 views

Update Woocommerce Cart Total with variable (having trouble)

Goal (project I'm working on): I'm trying to make Woocommerce more like an invoicing tool so my client. To do this I am using Advanced Custom Fields plugin [ACF]. This is a big customization of the ...
0
votes
1answer
62 views

WP Core hard coded to use http://www.w3.org/1999/xhtml not HTTPS

I've searched here and the WP Codex but haven't found anything. I have recently added an SSL Cert to a client site. The front end is fine and there are no insecure elements. However, the admin ...
0
votes
2answers
2k views

Block access to wp-admin

I'm attempting to use a .htaccess file to block access to the wp-admin folder. I've read through the Brute Force Attacks doc (https://codex.wordpress.org/Brute_Force_Attacks) and I've added the block ...
0
votes
0answers
42 views

Rename field labels for post in Admin Panel

My client wants to be able to upload a product datasheet file (PDF) for each product (we are using woocommerce). As the 'product Short Description' field allows media to be uploaded and to link to ...