• Resolved Lenin Zapata

    (@leninzapata)


    Hello, my posts that do not have an image are in draft, it is possible that when the plugin assigns a featured image, they will automatically change to “published” status?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alexandre Gaboriau

    (@mcurly)

    Hi Lenin.
    Unfortunately it’s not possible to do this with the plugin at the moment. The only way to do this would be to create a custom function.

    Regards.

    Thread Starter Lenin Zapata

    (@leninzapata)

    Ok, but it does have a hook to be able to create it when you insert the featured image? What is the name of the hook?

    Plugin Author Alexandre Gaboriau

    (@mcurly)

    Hi,

    Yes, I wasn’t sure, but yes, I checked the code and I created a hook right after linking the media to the post. This is it:

    do_action( 'mpt_after_create_thumb', $id, $attach_id );

    So I think you can use the action “mpt_after_create_thumb”. This hook has 2 parameters: $id (post id) and $attach_id (image id).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Status when assigning thumbnail’ is closed to new replies.