Help Adding filter to Add Media button for custom post type

I’m trying to add a filter to the add media button for a custom post type. I’m using add_filter(‘media_send_to_editor’) and it work’s fine, but I’m having difficulty finding a way to determine the post type of the admin page so that I can only perform the filter on that specific post type. Any ideas on how I can get the post post type?

Read more here:: Help Adding filter to Add Media button for custom post type

Leave a Reply

Your email address will not be published. Required fields are marked *