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

learn more… | top users | synonyms (1)

2
votes
3answers
1k 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
431 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
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
140 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
166 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
168 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
404 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
1answer
69 views

Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles

I need to redirect logged-in and non-admin users, from page with id 172, to the home of the website. Note that users that are not logged in can actually see the page. add_action('admin_init', 'xyz'); ...
2
votes
3answers
260 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
2answers
384 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
158 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
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
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
282 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
645 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
1k 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
1k 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
307 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
439 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
890 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
604 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
126 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
174 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
84 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
329 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
1answer
95 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
187 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
1answer
500 views

Error with Custom Admin Screen in iframe Thickbox

I have a plugin that adds a new admin screen in an iframe. I created a PHP file in my plugin, and I put a link with a class of Thickbox to that. Everything works just fine, but it produces a PHP error ...
2
votes
1answer
188 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
188 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
67 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
130 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
1answer
2k views

Custom post type: Add “Edit | Quick Edit | Trash | View” links to date (if title is not shown in column)?

I've created a custom post type for my "Testimonials", I don't need a title(s), how can I write a function that Adds the "Edit | Quick Edit | Trash | View" links to "date" if title isn't shown in the ...
2
votes
2answers
876 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
359 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
503 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
861 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 ...
2
votes
2answers
120 views

Any way to inherit methods from both my plugin class and WP_List_Class?

So WP 3.1 introduces the fancy WP_List_Class() causing me to rewrite all my custom admin tables. Fair enough. But...in the good'ol days, i was able to call my plugin methods using $this->method() ...
2
votes
1answer
83 views

Display update notification messages like 'What's New'

I am about to push out a new update for my plugin. I've used a few functions only available to WordPress 3.8, which is fine because I want to support the latest version. How do I display a message to ...
2
votes
1answer
90 views

How to add a help tab to all admin pages - including plugin pages

I have working code which adds a help tab to all screens in the admin which already have help options or a help screen - however, screens which don't have contextual help - such as the plugin I ...
2
votes
2answers
48 views

How to find out if an wp-admin action edited a file?

I want to create a small plugin to automatically purge the APC opcode cache after specific actions in the Wordpress admin interface. This is necessary if e.g. apc.stat is set to 0, as a change to a ...
2
votes
1answer
139 views

Is it safe to post form data via Ajax to the settings api? Am I missing something?

In my Wordpress Admin, I have my theme options set-up using the Settings API. I am trying to save the theme options form using Ajax so that the page does not refresh. The only thing i needed to add ...
2
votes
3answers
6k 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
519 views

Add Wordpress MU Network Admin via Database

I am working on getting a copy of a WordPress MU network up and running on my local machine for development purposes (using WordPress 3.2.1 at the moment). I need access to the network administration ...
2
votes
2answers
86 views

Custom Loop in Page Admin Causing Other Fields to Fail

I created a custom loop in the page admin section to manage a custom post type called "widgets" for that page. $ps_widget_list = get_post_meta( $post_id, 'ps_widget_list', true ); //first get the ...
2
votes
1answer
401 views

How to add admin bar and admin menu or submenu notification bubbles?

What would you recommend to use as far as manipulating the admin bar goes? I was thinking to just add a new admin bar node, and with CSS set a background image for the icon. Then in the node, just ...
2
votes
1answer
191 views

Create a Meta Box in the Admin User Screen?

My client wants the New User admin page to be composed of a meta box. add_meta_box( $id, $title, $callback, $post_type, $context, $priority, $callback_args ); But this seems to be for posts only ...
2
votes
2answers
313 views

How To Create User Specific Admin User Pages?

The aim is for a proposed site to have customers be able to login and be able to view a private and customer specific ADMIN page NOT frontend page (although this would be much easier to achieve). ...