1

Option 1: force featured image on all posts Use the save_post hook, which runs twice per "save" action if you have revisions enabled. You can verify it's the final run by checking that there is $_POST data (it's empty the first time around). add_action('save_post', 'wpse_force_featured_image', 20, 2); function wpse_force_featured_image($post_id, $post) { ...


1

This will lock uploads to “Uploaded to this post” and will not show “All media items” or other options in WordPress media panels. Add this code to your function.php file add_action( 'admin_footer-post-new.php', 'firmasite_mediapanel_lock_uploaded' ); add_action( 'admin_footer-post.php', 'firmasite_mediapanel_lock_uploaded' ); function ...


Only top voted, non community-wiki answers of a minimum length are eligible