Remove image from post_content on save_post

content_save_pre would be a much better hook for stripping the images, and as for setting post thumbnail as post Meta you can use save_post since the first hook gets fired before post Id is set and you need that for update_post_meta.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)