Articles of admin

How would I add a link to the profile editing page of the dashboard?

Our passwords are handled by an external LDAP server and the plugin we’re using to therefore removes all references to the ability to change passwords. What I’d like to do then, is add a link to the users profile editing page (where they get taken after clicking on their name) which points to our password […]

Hooks: admin_footer and admin_print_footer_scripts not working?

Tried them both and they don’t seem to be working, am I missing something? add_action(‘admin_footer’, ‘jupload_scripts’); wp_register_script(‘jquery-ui’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js’, array(‘jquery’), ‘1.8.6’); wp_enqueue_script( ‘jquery-ui’ ); }

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 reference documentation. Basically I just want to run an action when a post is successfully published. Thanks very […]

Is there a way to hook into the update-core page for custom messages?

We have some sites where we note a few things that need to be checked or done either before or immediately after a core, theme or plugin upgrade. While I keep a list of these things, sometimes users themselves do the upgrade and mess everything up. I was hoping to be able to add a […]

Set of plugins to control the Admin UI

What plugin you would recommend that would give powerful Admin UI options such as change Add Posts menu item to Add Articles, remove Add Media option for certain user roles and not allowing certain user roles to create Tags etc. I’m not talking about those plugins that lets you do client logo instead of WordPress […]

Load plugin scripts and styles only on plugin page

Hello wordpress users, I’m stuck with a problem while running 2 self made WordPress plugins. I’ll use the following code : define(‘PLUGIN_URL’, plugin_dir_url( __FILE__ )); add_action( ‘admin_enqueue_scripts’, ‘plugin_load_js_and_css’ ); function plugin_load_js_and_css() { wp_register_style( ‘plugin.css’, PLUGIN_URL . ‘plugin.css’, array()); wp_enqueue_style( ‘plugin.css’); wp_register_script( ‘plugin.js’, PLUGIN_URL . ‘plugin.js’, array(‘jquery’)); wp_enqueue_script( ‘plugin.js’ ); } } But it’s loading this […]

Add More Fields to Users Pages (Admin Panel)

So I’m trying to create some custom fields for users. I need to give users access to a 30 day trial of some software and I want to keep track of that in the users page of administration panel. If the user is in the trail I want to add “Trial” at the top and […]

Associating custom submenu item with post type of top level menu item

I’m working on a plugin that sets admin menu submenu pages on all different post types. I need to be able to associate these new submenu pages with the corresponding post type of the top level menu item. Is this possible without having to rely on using $_GET? I see that $typenow is used on […]

Is there a way to remove or hide individual pages on the Edit Pages screen?

I want to create a handful of pages that I do not want the client to have access to through the edit pages admin screen. I do want the pages to have all the normal functionality of pages in other parts of the control panel. For example, I want the pages to show on… Appearance […]

How to select a page within admin?

How does one apply an action to one particular page within admin? I’ve added a bunch of wysiwyg editors to one page (“Home”) and now I don’t need the main editor. But the function below – of course – removes the editor from all pages: function remove_editor_from_home_page() { remove_post_type_support( ‘page’, ‘editor’ ); } add_action( ‘init’, […]