1
vote
1answer
11 views

Correct check for any admin page with editor

I have read the codex, but found it a bit incomplete. I like to load stuff only on pages where the post editor is visible. This should include custom post types and everything. I am a bit insure ...
0
votes
0answers
28 views

Responsive Development in WordPress Backend

I've gotten so used to using Twitter Bootstrap. However, I can't seem to use it on the backend. I'm assuming it's conflicting with something in the core. So is there a way to get Twitter Bootstrap to ...
0
votes
1answer
23 views

remove all submenus from plugin

Is there a way to un register all submenus at once instead of using the code below? remove_submenu_page('myplugin', 'sub-page-1'); remove_submenu_page('myplugin', 'sub-page-2'); ...
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 ...
1
vote
1answer
142 views

All Users > User List > Update User Meta Field Inline

I am asking user few questions at the time of registration with checkboxes like In Registration form [] I am blah blah [] I am blan blah [] I am blah blah Now user will come for approval in admin ...
1
vote
1answer
99 views

Adding (blog-specific) links to “My Sites” admin page

The My Sites admin page only has links to the sites’ dashboards and production pages which is of limited value. I am trying to figure out a way to add a more useful links to them like New Post, ...
1
vote
2answers
159 views

How to change the name of the “edit my profile” link in the WordPress admin backend

I am really confused at this point. I can not figure it out how to rename Edit My Profile link in the admin backend. How can that be done?
2
votes
3answers
560 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, ...
0
votes
1answer
44 views

loop and in admin header problem

I have a WP_Query loop running in a function that's attached to the 'admin_enqueue_scripts' hook add_action( 'admin_enqueue_scripts', 'rs_get_scripts'); function rs_get_scripts() { //enqueue js ...
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
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
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 ...
1
vote
1answer
2k 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 ...
1
vote
1answer
340 views

How to add HTML / Form to an Admin Bar Menu

I'd like to add a custom form to the admin bar in Wordpress. is there a way to accomplish this? So far all of the documentation seems to only allow the addition of simple text links.
0
votes
2answers
275 views

Proper way to create an administration page without adding it to the menu

From what I've seen around the code, you can do this by hooking a function on admin_init, do you stuff and then die(). Is there a better way that follows "WP best practices" I'm missing here? The ...
1
vote
1answer
114 views

which action to hook to in order to perform post-publish action

I have some functionality I've written in order to post the title and link for the post to twitter whenever a post is published. I'm wondering which wp function to hook this to? save_post has no real ...
0
votes
2answers
65 views

creating a plug in that would tap into save/update action of posts

What's a good plug-in that taps into the update post or save post action that allows admins to enforce rules such as if a user selects a category with the ID 5 then he also has to select at least one ...
5
votes
1answer
799 views

Change admin language based on user (in single-site)

I'm trying to make a small plugin to install in some sites of a german client. I can make my way around WordPress in german, but would be easier if it was in english. There's a plugin that manages ...
0
votes
2answers
222 views

body_class hook for admin pages

The body_class hook seem only to work with non-admin pages. When I do add_filter('body_class', 'add_body_classes'); function add_body_classes($classes) { $classes[] = 'myclass'; ...
1
vote
1answer
78 views

Change the look and feel of admin pages

I want to change the look and feel of the post edit page without making changes to any of the wordpress core file, which is basically a theme. For example, for any user with role of 'author', i want ...
2
votes
1answer
331 views

WP_Error handles errors, but how can I show success with a message?

My script accesses an api to populate posts. I can add any errors to the WP_Error class, but can I add success messages to a global variable?
0
votes
1answer
132 views

Ajax request sends url rather than data

I have a very weird error running on my plugin. I am currently developing a plugin that will allow the user to create routes and specific dates for the route. The dates are more or less tickets that ...
1
vote
1answer
119 views

Admin Plugin POST to another file within the plugin

This is a simplified version of what I need to do (i.e. I know there are other ways of doing things but I need a solution to this specific problem). I am using wordpress 3.3 from a fresh install. I ...
0
votes
2answers
158 views

How to add captcha to publish widget

I want to add a captcha challenge to the "publish post" widget in "add new post" to prevent spam posts. This is because my site is open to registrations and posting. Could someone please suggest how ...
0
votes
1answer
380 views

using admin functions on frontend

I'm updating my plugin to rely on internal functions of WordPress. I'm about to use wp_generate_attachment_metadata, but this function seems to be only available in the admin section. Is there an ...
0
votes
1answer
513 views

Adding a jQuery modal dialog to the admin area

I am writing a plugin for a customer and I need to use lightbox/thickbox/fancybox/etc in my admin piece. No matter what jquery plugin I use, and I'm using wp_enqueue_style and wp_enqueue_script, ...
1
vote
1answer
90 views

maintaing consistent layout wordpress dashboard

I am developing a functionality in WordPress so that once user updated any information admin can approve/reject the information only after which it should get published in the front users,in specific ...
3
votes
1answer
66 views

why don't I get error messages in admin when developing?

I am curious as to why my screen goes completely blank when an error is present in my code. This only happens to me when it is an admin function. No warnings, no syntax error messages, nothing. Just ...
4
votes
2answers
586 views

Make Categories and Tags required in admin

Hello i started from Bainternet solution in this post: don't publish custom post type post if a meta data field isn't valid I made a plugin to make categories and tags required. The ...
0
votes
2answers
2k views

Add section (add_settings_section) to a custom page (add_submenu_page)

I have a plugin page created with add_submenu_page. I want to add a new section there but nothing happens: add_submenu_page('parent', 'Foo', 'Foo', 'manage_options', 'foo-settings', ...
0
votes
1answer
80 views

modify buddpress adminbar only in admin pages

I have modified the buddpress admin bar by creating the following plugin which adds a simple text link to the bar: function bp_adminbar_currentsite_menu() { global $bp; ?> <li> <!-- ...
3
votes
2answers
2k views

Is There a WordPress Hook to Filter the Edit Posts View?

I want to be able to customize the WordPress edit posts screen to filter based on a custom field (or whatever). Unfortunately I'm not sure what filter or hook to use here, and instead of opening the ...
0
votes
1answer
562 views

Does admin_print_scripts-$hook_suffix work for nested paths to individual files?

Can the hook admin_print_scripts-$hook_suffix be used for a hook which has been created like $hookname = get_plugin_page_hookname("my-quiz/lib/admin/$code_page", '' );? .. where $code_page is ...
0
votes
2answers
2k views

Adding CSS to custom post type admin page causes error

I have this bit of code in my Meteor Slides plugin that loads a stylesheet on the admin pages of just the slides custom post type: add_action('admin_head', 'meteorslides_admin_css'); function ...
1
vote
1answer
96 views

Including a JS source with an admin page

The administration part for my plugin is divided into several pages and for some pages I would like to enqueue a JS source which would add jQuery functionality to various elements. Right now this is ...
4
votes
1answer
977 views

Admin config screen without menu

I want to create a sub config from some page on admin panel, eg: I've set config menu this way: add_menu_page( 'E+', 'CRE+', 8, 'cr_e_plus_user_config', 'cr_e_plus_user_config'); add_submenu_page( ...
18
votes
5answers
9k views

Creating a table in the admin-style?

What is the recommended way of creating a page with a table, in the style of the tables showing posts or users in the admin area? I am expanding the Cache Images plugin, and it contains a table with ...