I'm making a plugin that has a custom post type and I need to add predefined content.
I used filters
default_content for the title and content but I can't find how I can add an predefined attachment (thumbnail) image.
In my plugin I have the settings option where I set the default image and there I have the attachment ID. Now all I have to do is set it up when I create a new post.
Is there any action or filter to I can use it?