How do I remove attachment fields, like description
and alt
in media library of Wordpress attachments?
The following code use to work on old Wo
The styles can be printed on /wp-admin/post.php
using admin_print_styles-$page, and selecting the elements using the data attribute.
It's possible to detect the current post type and only apply the rules on a given type:
foreach( array( 'post.php', 'post-new.php' ) as $hook )
add_action( "admin_print_styles-$hook", 'admin_styles_so_25894288');
function admin_styles_so_25894288() {
global $typenow;
if( 'post' !== $typenow )
return;
?>