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

learn more… | top users | synonyms (1)

263
votes
108answers
132k views

Best Collection of Code for your functions.php file [closed]

Please vote on the question and any answers you find useful by clicking on the UP arrow on the left hand side of the question or answer. As with many others who are now viewing this post, I have been ...
0
votes
1answer
14 views

how to disable the e-mail verification on wp-admin/options-general.php multisite admin e-mail

I have a multsite that has a bunch of blank e-mail addresses in the admin e-mail address feilds, and I just want to update them without the e-mails being verified. Background is that I am a web ...
0
votes
1answer
45 views

Cannot login to ANY WordPress site out there

this weird thing has happened to me: I tried to login to one of my WP sites and it said: This site can’t be reached The connection was reset. ERR_CONNECTION_RESET The URL was: ...
4
votes
1answer
139 views

How to add internal, revision comments to page updates

I'm not sure the proper WP parlance for this, but I'd like to add historical comments to submitted page updates for version control purposes or as a supplement to the Revisions Browser. (Something ...
0
votes
0answers
21 views

Change admin URL for Wordpress 4.4.2 [duplicate]

I need the admin URL wp-admin/ to be something else. This is not for security. It only personal preference. I've tried many plugins and guide which doesn't seems to work for Wordpress 4.4.2: ...
0
votes
5answers
3k views

Admin Top Bar Not Showing On Front End

i'm having problem with displaying admin top bar on my site. I googled and got some solution which i tried like 1) Checking wp_footer in footer.php 2) Checkbox ticked in user profile saying show ...
0
votes
1answer
45 views

Filter posts of custom post type by meta key in (List All Section)

How can I filter the posts which are displayed on the admin list all page of a custom post based on the value of the a value. So far I know how to do the following anywhere on the front end: $args = ...
0
votes
1answer
20 views

'Conflict' with action deleted_post and is_admin()

I created a delete button on frontend for blog posts and custom type posts and I would redirect to a specific page after deleting them, I looked around on google and I found all solutions like this: ...
0
votes
0answers
66 views

Save plugin settings to a custom array and database table

First of all, please bear with my ignorance on the topic. I'm super new to WP Plugin development, and have been struggling with it for some time now. I'm developing a simple Wordpress plugin (well, ...
5
votes
2answers
1k views

Wordpress Multisite allow site admin to add user without email confirmation

In Wordpress Multisite,a site admin (not a super admin) doesn't have the option “Add the user without sending them a confirmation email” when adding a new user. Is there a way to bypass the ...
0
votes
2answers
42 views

How to change the User name and Password of admin account

By default i have selected the Username of admin account as "admin" , of the Wordpress CMS while installing wordpress first time. Now i want to deploy the webpage : considering the security ...
0
votes
1answer
43 views

How to attach post ID to image links in Wordpress tinymce editor

I'm trying to output the post ID in the rel-attribute of the image links that are generated by WordPress when using the Add Media button. I found a way to retrieve the post id and also how to ...
11
votes
3answers
8k views

How can I speed up my WP admin section?

We have many WP sites with a proxy in between the servers that they sit on and the internet. Some things in WP simply don't work: RSS feeds on dashboard looking up themes looking up plugins core ...
0
votes
1answer
49 views

Creating widget - ask for selecting a post in the admin panel

First of all, sorry for my English, I'll try to make it understandable. I'm new on WordPress; I already have created a few plugins but they didn't needed admin configuration. Now I'd like to make an ...
11
votes
7answers
17k views

Admin Ajax is returning 0

I am relatively new to jQuery and AJAX in particular. I have a small issue with the return value always being 0, though I think this is actually the success message and it's not returning anything. I ...
2
votes
4answers
686 views

How to remove Gravatar from Username column

How to remove the Gravatar image from Username column in the All User admin page?
9
votes
6answers
12k views

How to use more than 256MB of memory in the admin?

I'm building a site for a photographer who uploads pictures that are normally large for todays digital cameras. Images are quite memory intensive, especially the image operations like creating ...
11
votes
7answers
5k views

Disable dragging of meta boxes?

Anyone know how to disable this functionality so the meta boxes can't be repositioned?
1
vote
3answers
4k views

How to put placeholder text in the main post input area?

I'm making a course plugin for a university in England. I'm looking to put some default placeholder text in the main post content area, on the admin side. Its the rich text editor I want it to go ...
0
votes
0answers
16 views

Handling dozens of sidebars

We have the job to realize a page with custom sidebars. Sidebars can be created on the fly on post an page edit screens, to add a custom sidebar on each page. The client wants to use this to add ...
0
votes
1answer
26 views

Custom Post type sort order not working in the admin area

I have a WordPress site that has a couple of custom post types. None of these custom post types allow me to sort the posts alphabetically or by date in the admin area. I have looked all over online ...
0
votes
0answers
15 views

How to create some “theme settings” page in admin?

I'm using today some PHP constants in my functions.php to define default info about my company, as follows: define('COPYRIGHT', 'copyright_text'); define('CONTACT_EMAIL', 'oi [arroba] ...
1
vote
1answer
99 views

Adding a Clone link to product attributes - post_row_actions() filter, or how to override a Class question

I have a request to be able to duplicate a product attribute in WooCommerce. Think: duplicating a product (with already existing functionality), or plugins that allow you to duplicate a post. ...
1
vote
0answers
12 views

Prevent additional top level categories but allow more children

Is it possible to prevent additional parent categories being added to posts but allow children categories to be added to predefined parent categories? For e.g.; Food & Drink -- Mexican -- ...
3
votes
2answers
2k views

Send Admin Emails to Multiple Email Addresses

Is there a hook that would allow me to email multiple email addresses for the default admin email notifications? I was hoping I could build an array: $adminEmails = array('me1@example.com', ...
0
votes
1answer
42 views

Removing custom sort order from admin page listing

For the background to my question: On my page listing, I've got a set of pages that are countries and the child pages of those are categorised into 'Types'. So I've got a page structure like this: ...
3
votes
1answer
43 views

Ban certain widgets from certain sidebars

I have several sidebars in the theme I'm developing. Some of them are designed to hold only a few widget types. So I'm trying to figure out how to keep other widgets out without using a plugin. After ...
0
votes
0answers
31 views

Can Someone Explain What These Three Lines Do?

I found this in a plugin (not a public plugin) $code_pages = array('offers.php'); foreach($code_pages as $code_page) { $hookname = get_plugin_page_hookname("xxx/$code_page", '' ); ...
0
votes
1answer
31 views

Wordpress Multisite FQDN Admin Access

I have a Wordpress multisite setup at http://in-autos.com and I have a sub-domain multisite structure and a FQDN http://billgattonsales.com My trouble: I can access the Admin area by visiting either ...
0
votes
1answer
70 views

Best practice for plugin: always detect admin-ajax call?

Recently I was debugging/hacking a plugin authored by someone else. I put a breakpoint at a spot I was interested in - a relatively complex admin page. I noticed that even during admin-ajax calls ...
0
votes
0answers
50 views

500 internal server error on wp-admin only

I am getting a 500 internal server error when I try to log into www.mysite.com/wp-admin/ and www.mysite.com/wp-login.php. The actual site is up and running just fine so it cannot be a database ...
0
votes
0answers
29 views

Private post hidden from Admin too

I have a strange problem. I am running a woocommerce site with several levels of privileges/roles. I wanted to reserve a group of products for specific users and was anticipating modifying the user ...
6
votes
2answers
577 views

What is the real intention for admin-post.php?

While looking for proper form submission handling in plugins for users (frontend) I've stumbled upon this article Handling POST Requests the WordPress Way, which encourages to use admin-post.php for ...
0
votes
3answers
2k views

How do I add some javascript validation to the admin interface form's onsubmit?

I have a plugin that adds meta boxes to the admin interface and I need to do some validation when the user presses the "update" button before the form is submitted. Is there a WordPress action or ...
0
votes
0answers
28 views

How to add a dynamic image as a widget in dashboard

I'm trying to add an image as a widget on the dashboard screen like this: This is an ads image, which will be seen only by users with read role and that too will be changed every month. Already I ...
3
votes
1answer
1k views

Can an admin check passwords of registered users?

I have a site where I open accounts for users and hand over login credentials to them. Now, Let's say that a user forgot his password, and wants to reset it. He clicks "Lost your password?" link on ...
6
votes
6answers
4k views

How to hide admin account in BuddyPress? (for security reasons)

I have been working with WordPress for the past 3-4 years, but I am new to BuddyPress. I would like to hide the admin account completely from BuddyPress for security reasons. For example with a ...
0
votes
1answer
16 views

Delete all blogs on multisite

I'm writing a function that will delete all blogs (except the main one) from a multisite, the function is dieing whenever I call wpmu_delete_blog and I've got no idea why. $blogs = wp_get_sites( ...
7
votes
2answers
8k views

How to set back-end language per user?

I would like to use the english interface for the back-end but I would like to set it to native language for an editor. I know WPML has this feature, but I don't want to install the unsupported WPML ...
0
votes
1answer
32 views

wordpress ajax return 0

I'm tryng to set up a panel, this one The menu on the top calls different ajax functions in order to display a thumb. Clicking on the thumb you can see the details in the last box of the panel. I ...
0
votes
1answer
30 views

issue in wordpress auto delete post and redirect to another 1

i am getting strange issue on WordPress, my site is huge traffic and database. one thing.. my WordPress is updated 4.4.2 all plugins updated. now i get issue when i publish new post most of the posts ...
0
votes
1answer
34 views

wp_category_checklist won't show up for non-admin users

I have a product registration page with a form in which I use wp_category_checklist() to make my users select categories. This works great only, I just today noticed that only admin's can use the ...
0
votes
0answers
9 views

I need to add table records from an admin menu page

How do I keep control of a admin menu page that I create via 'add_options_page'? I have built a "demo" plugin that creates an option page. This was through a tutorial and the page that was created ...
0
votes
1answer
190 views

Dynamic form variables for post meta

I am trying to create a dynamic form in the wordpress admin where I can add a line and still be able to process the variables into the database as post meta. I've done quite a bit of research and ...
0
votes
2answers
974 views

Add filter-by-tag in the all posts admin console page

By default the 'all posts' page contains the following filters by date by category Is there a way I can add 'by tags' as well ?
-2
votes
1answer
52 views

One folder to be accessible by one user

so I am making wordpress website and the idea is that I want to upload different files for the different users but I want the user to see only his files.The problem is that when I copy the url that ...
0
votes
1answer
108 views

Set a default category - if the user didn't select one- before creating a post

Is there some option hook to set a default category for a custom_post_type when the user didn't choose any ? For example in RoR it's very simple - by using before_save filter you can set whatever ...
0
votes
1answer
22 views

Adding admin for specific users

I was developing a website and I ran into this issue where I need to provide an "admin" account that can monitor registered user activity on my site. Now I don't want one "admin" to view users that ...
0
votes
1answer
27 views

How to make sure your admin doesn't hi-jack you site?

I have a domain and I would like to hire someone to develop it. Could it be possible to give him full control, yet be safe that he does not hi-jack the site. Or the only way is for me to be the admin ...
0
votes
1answer
38 views

Redirect admin 403 “Cheatin uh?” admin pages

Blocking role capabilities on the admin returns the 403 "Cheatin Uh?" page. What is the best way to redirect this to 403 page to perhaps the dashboard, homepage, or a custom 403 page? I know I could ...