Articles of admin

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). Said page would display user meta and content that the site Admin could add ad hoc. I am […]

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 ($post_type). Is there an alternative for the User screen?

Add tabbed menu to admin page

I am very new to WordPress and here I want to create one admin page with tabs as shown in image How can I create such page with these tabs?

how to redirect to if is typed in?

How would I create a wordpress function that will redirect a user to if they type in I would like to have this as a wordpress function.

Add text to wordpress admin 'Add Post' edit

I’d like to add some descriptive text underneath the page title on both the list and edit post screens for the default post and also custom post types – e.g. “Below is a list of your recent blog posts.” What’s the best way to do this? I need to make add a list of instructions […]

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 was this jQuery code : $(“#cgform”).submit(function() { var form_data = $(‘#cgform input’).serializeArray(); $.post( ‘options.php’, form_data ).error(function() […]

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 the user before they update the plugin with a list of What’s New, or just […]

Adding markup to column text in “Edit Pages” admin page

I was wondering if there is a way to hook into the column titles in the “All Posts” admin page to modify them. For instance, I would like to change “Post” to “<strong>Headline</strong>“. Are there any hooks that would let be do this without modifying the WordPress core code? I have found some information about […]

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 file then doesn’t reset its cache value in the opcode cache and so calls will use the old, […]

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 list of current widgets $active_widget_array = explode( ‘, ‘, $ps_widget_list ); //then separate those widgets into an array of active widgets // this array […]