Update media item using wordpress rest api in python

What you are trying to do is not something that endpoint is capable of. You can create attachments, you can even rotate and crop the file, but you cannot replace the attached file. When cropping/scaling/rotating an image, a new attachment and ID are created for the newly edited image. However, sending an UPDATE/PUT/POST request to … Read more

How to remove the author field from bulk/quick edit form?

After exploring several options, I landed on this as the cleanest server side alternative: add_filter(‘admin_head-edit.php’,function(){ $screen = get_current_screen(); if( post_type_supports($screen->post_type,’author’ )){ // remove from bulk/quick edit remove_post_type_support($screen->post_type,’author’); add_filter( ‘manage_posts_columns’, function($columns){ $columns[‘author’] = __(‘Author’); return $columns; }); } });