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

learn more… | top users | synonyms (1)

2
votes
2answers
75 views

Is there an action that is called when a post is restored from the trash?

I'm looking at the wordpress list of actions and trying to find an action that is called when a post is restored from the trash but cannot find one. Does anyone know if it exists?
2
votes
2answers
935 views

How Can I Centralize Content Usage and Approval in a WordPress Multi-Site installation

I am working with a non-profit client that runs several charities under one umbrella. A good metaphor would be to think of the United Way (but it's not the United Way). Can a WordPress multi-site ...
2
votes
3answers
885 views

Wordpress manage users as non admin

Is it possible to let a non-admin user (e.g an editor / author or another role) manage the users? I am working on a Wordpress website where multiple people manage the website, and there will be ...
2
votes
1answer
3k views

Sort pages in loop by admin's page attributes order field?

Is it possible to sort pages in the loop using the admin's order field (under page attributes)?
2
votes
3answers
5k views

Hide Admin menus per role in Wordpress

I am trying to hide a certain amount of menus for a client. Right now I am using the following code and it is doing its job well, but it removes it for everyone as far as I can tell. As in all roles. ...
2
votes
3answers
200 views

Get current active wp color scheme

Is there a way to return the current active color scheme? This is how to register a new admin color scheme <?php register_admin_color_schemes(); ?> is there something like ...
2
votes
2answers
670 views

Read only capability for custom post in admin area

I'm actually building custom type to WP and need to be able to restrict post access to some user role, ie. in admin area, collaborators can see posts but can't edit them, just only open them as ...
2
votes
3answers
905 views

How do I only load a plugin js on it's settings pages?

I have a plugin that is conflicting with some default wordpress functions. In the post and page creating/edit areas. I only need my functions on my settings pages. I have the js file loading in admin, ...
2
votes
1answer
54 views

Text snippets shared across posts

I'd like to add a "fast facts" section to a wordpress site - an area in the sidebar where snippets of text are rotated. Where is the best place to store things like this? Widgets don't really allow ...
2
votes
3answers
2k views

Role that can edit only widgets, not other theme options

How could I make particular role access widgets administration menu (wp-admin/widgets.php), but not access other theme administration menu elements. I have got that far as to display Appearance menu ...
2
votes
1answer
539 views

WordPress - wp-admin subdomain

I'm new with WordPress, trying to map the wp-admin to a subdomain: instead of: www.mydomain.net/wp-admin I would like: admin.mydomain.net I have already created a sub-domain (I use GoDaddy) that ...
2
votes
1answer
1k views

JS / JQuery form validation in backend admin menus

I'm building a plugin to manage course information and am struggling to put form validation on the new meta boxes I've added. Has anyone a good way of putting JS / JQuery validation on the admin ...
2
votes
3answers
1k views

Sends out email to admin

Are there any plugin or code that sends out a email to me (admin) when a author or writer publish a post?
2
votes
2answers
144 views

Having admin on different host breaks attached images

Sometimes it's nice to have admin on a different host (admin.mysite.com) then the actual site (www.mysite.com). If admin.mysite.com is not publicly accessible, then images attached to posts on ...
2
votes
2answers
167 views

How can I get a list of plugins and which blogs are using them?

I'm about to upgrade my Wordpress MU installation to wordpress 3 Before I update, I want to find out which blogs use which plugins. I don't see a way to do that in the UI, is there? What about a ...
2
votes
2answers
175 views

Is there a way to change the color of a row in Post Administration based on the type of post?

What I'd like to do is have the entire row be a different color - for example, a light blue for draft posts. That way I can visually see at a glance what's a draft, what's scheduled, and what's ...
2
votes
1answer
1k views

Adding custom Javascript to the head tag in Admin

I am writing a plugin for the back end but I need to add javascript that is created in a for loop to the head of the page. How do i do this? Steve
2
votes
3answers
409 views

Getting Rid of the WordPress.com Toolbar on Other Sites?

I recently started a WordPress blog, and now I get an ajax-loaded toolbar showing up at the top of tonnes of pages. It's all links to my WordPress accounts and blogs and stuff. It's fine that it ...
2
votes
4answers
2k 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() { ...
2
votes
3answers
498 views

localhost/wp-admin on my local redirects to production site's /wp-admin

So when I go on localhost, my development environment loads fine. But when I try to go to /wp-admin, I get redirected to the production URL mysite.com/wp-admin. Where is this being set? I don't want ...
2
votes
3answers
330 views

How to remove Gravatar from Username column

How to remove the Gravatar image from Username column in the All User admin page?
2
votes
1answer
215 views

Show admin help message across custom post type parent and child posts

In my custom plugin, I am using the following code to display an info / help box. This is working great for the main admin edit screen that lists the custom posts, but how can I extend this to show ...
2
votes
2answers
1k 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 ...
2
votes
2answers
454 views

How to make certain page templates visible to admin only

Making a site for a client, I have some pages that the client won't be able to edit or delete. These pages rely on specific page templates. However, I don't want these templates to be available for ...
2
votes
1answer
167 views

Only allow new subpages to be created

I'm looking for a way to only allow users to create new subpages once there are nine pages that are parents/root pages. Once there are nine parent pages when trying to create a new parent the users ...
2
votes
2answers
2k views

Is there a way to lock certain pages from being edited by anyone other then the admin?

I have built a wordpress site and theme and have several pages that I do not want editors to edit. However, there are other pages that I want them to have access to edit. Is there a plugin or code ...
2
votes
1answer
333 views

Is there a way to prevent author change when editor/administrator edits a post?

As an administrator when I change or edit a post of an author (for example add a category through quick edit) the author of the post changes. We do not want this to happen. Is there a way to prevent ...
2
votes
2answers
845 views

Daily notices of failed login attempts for non-existent admin user

I run a multi-user site and for the past week or two I have been getting daily notices that someone is getting locked out due to failed login attempts for user "admin" via the Limit Login Attempts ...
2
votes
2answers
2k views

How to remove categories filter from wordpress admin?

I removed the categories column from "All posts" page by applying this code. add_filter("manage_edit-post_columns", "my_post_edit_columns"); function my_post_edit_columns($columns){ ...
2
votes
2answers
2k views

How can I activate Collapse Menu in WordPress?

Inside the WordPress admin dashboard there is a button for making the left side menu collapse (to show just icons and not the icons + text on left side). How can I add jQuery so that it gets ...
2
votes
4answers
379 views

Conditional check for front-end which includes ajax

I need a conditional which exits if the context is not a front-end view including AJAX requests. I have this at the moment: if (is_admin() && !DOING_AJAX) return; The DOING_AJAX bit ...
2
votes
1answer
477 views

How to prevent custom fields from being cleared during a bulk edit?

In my function for saving custom field values I add a few checks to prevent the values from being cleared during an autosave or a quick edit. add_action('save_post', 'save_my_post'); function ...
2
votes
3answers
1k views

Redirect Admin User in Dashboard

I am currently trying to setup a redirect so that my admin users are redirected to a page other than the dashboard within the wordpress administrator interface. If I leave out my conditional, the ...
2
votes
2answers
2k views

WordPress User Roles, Custom Post Types, and Admin views

My friend mentioned that there is a simple way to modify what users see in the admin sidebar based on their user role. I have a large number of custom post types, one for each user, and I need to ...
2
votes
2answers
665 views

Renaming Menu Item within Admin Menu Section for a Custom Post Type?

I have a feeling this is a bug. When you create a new custom post type it does not seem possible to modify the first submenu item text. I am referring to the link which allows you to view the post ...
2
votes
1answer
464 views

Admin Post Update Redirection to Posts Screen

Is there a hook I can use that when a post is created or updated it goes back to the list/table page of all the posts. If it is also possible to target a post type as well that would be cracking. ...
2
votes
1answer
469 views

add_submenu_page set for multiple roles [duplicate]

I have this string: add_submenu_page(basename(__file__), 'Events', 'Colloqui', 'subscriber', 'BW_events', 'BW_events'); How can I let this be available to editor(s) too? I tried ... ...
2
votes
2answers
98 views

Unable to set right time in admin and frontend template

When I run a simple php file called test.php (placed in the root of the wp installation) that contains something like that: <?php echo date('H:i:s'); ?> The result is right: 15:30:00 and the ...
2
votes
2answers
445 views

Reorder dashboard widgets

I recently tried to reorder the dashboard widgets by writing a plugin. I accomplished this: with the following code: <?php /* * Plugin Name: Custom Dashboard * Description: Custom dashboard ...
2
votes
3answers
8k views

How does admin-ajax.php work?

we are having some issues with an external developer. i am not a wp person so i turn to the masses to help out. we want to limit access to the wp-admin site to internal access only (via vpn). simply ...
2
votes
1answer
118 views

What does $_registered_pages do?

I would like to know what $_registered_pages does and where am I supposed to use it. Thanks. p.s was unable to find any documentation on it online.
2
votes
1answer
227 views

remove_action with profile_personal_options

I'd like to remove the action profile_personal_options (more specifically the color scheme and visual editor checkbox) which shows up in wp-admin/user-edit.php. I believe it's as simple as running it ...
2
votes
1answer
600 views

Add a Custom Class to Admin Menus

I am looking for a way to add some custom classes to the admin menus using PHP. For example, here are the li tag for Posts and Pages: <li id="menu-posts" class="wp-has-submenu ...
2
votes
1answer
231 views

Getting the different post statuses + count like in edit.php, in a custom submenu page

I'm trying to create a submenu page for reordering posts/pages. Right now I'm trying to include the list that display the different post statuses, for example: All (5) | Published (4) | Draft (1) I ...
2
votes
1answer
78 views

Multiple users editting widgets

I have just completed a website using WordPress as a CMS, the site has 6 people administering the content and in the couple of days before launch all 6 were updating the content. We found that if ...
2
votes
1answer
142 views

PHP Notices appear when browsing any page in admin, but only for child theme, using code from WP Codex

My php_error.log in my console (locally on OSX) is reporting 3 PHP Notices. The PHP Notices only appear when browsing each admin page in the back-end for a site (running multisite) that uses a child ...
2
votes
2answers
967 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 ...
2
votes
1answer
426 views

How to get a nofication when post submitted

I was wondering is there a way to send the admin a notification (email or otherwise) whenever a user submits a post. Currently, I have to log into the admin section to see if there was anything ...
2
votes
3answers
565 views

Customize Admin Users Screen based on Role

I've added a role of "Customer" and I am working on customizing the Users Screen for that role. What I'd like to do is customize columns based on that particular role. Note: For example, take a ...
2
votes
1answer
910 views

Using WPAlchemy metabox values in another metabox

I'm building a quite complex custom post type structure and I would need some help regarding my metaboxes. What I want to do: Thank's to the have_fields_and_multi() function, the user enters data ...