A similar hook as wp_head for the admin area
The alternative to wp_head action in admin area is admin_head. But, if your CSS depends on another stylesheet, you should use wp_add_inline_style() function hooked to admin_enqueue_scripts action.
The alternative to wp_head action in admin area is admin_head. But, if your CSS depends on another stylesheet, you should use wp_add_inline_style() function hooked to admin_enqueue_scripts action.
Upon request I will write an answer using a function from a suggested answer for the similar question: How to target with css, admin elements according to user role level?. This function will output classes to the body element for all roles of the current user in the form role-XXXXX function wpa66834_role_admin_body_class( $classes ) { … Read more
Taxonomy/category hierarchy lost when editing posts [closed]
I had the same issue just a moment ago on a local MAMP install of WP, added the following line to my wp-config.php and it fixed it for me: define(‘CONCATENATE_SCRIPTS’, false );
This is a pretty late answer, but I was looking to do something similar and figured it out. I wanted to get nav_menu_items into an RSS feed, which required changing the built in nav_menu_item post type property publicly_queryable. Anyway, it was actually pretty simple, here’s a generic function to do it: function change_wp_object() { $object … Read more
I’m using a plugin called Advanced Access Manager to enable certain permissions to different userlevels/groups, this should be able to do exactly what you are asking.
You would have to change the code of the app, I have checked. It would be possible but hard to make your own version of the app that includes the added admin menus. If you would like to get that functionality added you should post on the forums as @RyanLoremIpsum said. But you may until … Read more
Tricky but once you understand how WordPress sets the sizes and the fields then the rest is easy: function thickbox_fields($form_fields, $post){ unset( $form_fields[‘post_title’], //disables “Title” field and so forth… $form_fields[‘url’], $form_fields[‘image_alt’], $form_fields[‘post_excerpt’], $form_fields[‘post_content’], $form_fields[‘align’], $form_fields[‘image-size’] ); //create the size input for full only and set display to none $size=”full”; $css_id = “image-size-{$size}-{$post->ID}”; $html = “<div … Read more
Working Example [Update] From this Answer, by @TheDeadMedic, here’s an adaptation to show only comments from a specific post_id. A link to this action is inserted in the status row. Hello World is the post with ID 53. When clicked it displays only the comments of that post in the URL example.com/wp-admin/edit-comments.php?comment_status=all&hello_world=1: add_action( ‘current_screen’, ‘wpse_72210_comments_exclude_lazy_hook’, … Read more
You could over-ride the CSS by using the admin_print_scripts admin_head-media-upload-popup and add css to match your needs. This can be done via the functions.php file or by creating a plugin. Here is the code in a plugin format to begin adding style: <?php /* Plugin Name: Some Name Description: Custom Thickbox Styles */ add_action(‘admin_head-media-upload-popup’, ‘custom_tb_styles’); … Read more