Articles of admin

Uploading files in admin panel?

I want to allow my users to upload files in admin panel, but I’m not sure where should I upload these files and how the script should look like? <p>Please provide link to a file or click “Upload” to upload it from your PC:</p> <form> Link: <input type=”text” name =”logo_url”> Upload: <input type=”file” name=”logo_file”> <input […]

Widgets not expanding on wordpress 3.3 widget dashbord

I updated to WordPress 3.3 (manual update) and cleaned browser cache. Widgets dashbord stop working when tring to expand dynamic sidebars for custom theme when it works for previous wordpress 3.2 installation (using register sidebar on functions.php) I have tried to install Hotfix 0.8 exension and now it works for twentyten theme but not for […]

Hide upload image fields for the different media upload popups

I am trying to change a few of the options in the Set Featured Image popup in the WordPress admin. I can’t seem to find anything that determines if the popup window is a Featured Image or an Add Media popup. I want to hide Align and Sizes fields for the Set Featured Image popup […]

How can I delete all inactive widgets?

I want to cleanup all inactive widgets. I tried following snippet as suggested by this answer Script to remove all inactive widgets?. $sidebars_widgets = get_option( ‘sidebars_widgets’ ); $sidebars_widgets[‘wp_inactive_widgets’] = array(); update_option( ‘sidebars_widgets’, $sidebars_widgets ); I also tried deleting option sidebars_widgets directly from the options table. But after page is refreshed, old value is restored with […]

Is it possible to hook AJAX to UPDATE-button?

I have a site with a custom post. When I enter that custom post in admin (edit)-page then a form is rendered. This form takes like about 2-3s to render – it’s a lot of of values in it – both hidden and not hidden. When I update this custom post it takes about 2 […]

Refreshing collections in the admin media manager

I know this question is very similar to this previously asked question; however, I was wondering if there was a more up-to-date/official way to refresh content programmatically in the WordPress admin media manager. In my specific instance, I’m trying to integrate the Getty Images plugin with a select attachment modal (e.g., Featured Image). Currently, I’ve […]

Ordering posts by custom taxonomy in admin area

EDIT @kaiser – this question is slightly different to the answer you posted in that I am talking about sorting by clicking the column title rather than adding a dropdown to filter by taxonomy term (which you’ll see I’ve already done in the screenshot). Like Otto says in the answer Milo linked to: ‘it is […]

How do I remove the entire left nav bar in admin for certain level users?

I know how to remove items from the left nav bar (hook into admin_menu and do global $menu; unset( $menu[ __( “Posts” ) ] ); for example). But it still shows a left nav bar (with nothing on it). I want the entire left nav bar gone. I have tried this and it doesn’t work: […]

How to remove “Super Admin” from All Users for those that are not a “Super Admin”?

I would like to remove the filter at the top that says “Super Admin” for users that are not a “Super Admin”. How do I go about doing this? This screenshot shows what I am talking about:

How can I show more than 15 themes at a time in the admin menu?

I have a lot of themes in my test wordpress site. I get a little frustrated that I can’t show more than 15 at a time. Picture.png In pages and posts you can click “screen options” to choose the number, but it looks like “Themes” has no such option. Picture-1.jpg Is there another […]