• Resolved covalenciawebs

    (@cowalenciawebs)


    Hi, I’m customizing the add blog form, so users can add images in description. I have solved, but images are not associated with the post because it isn’t created when you fill the form. And I need it to delete the images if post is deleted.

    I have added a code that creates a post in draft when you use the form. What I need is to change the file public/partials/profile-magic-add-blog.php to use to post id and make wp_update_post instead of wp_insert_post.

    Is there anyway to add this file in the child theme to customize it, the same as themes can be customized?

    Thank you.

Viewing 1 replies (of 1 total)
  • Hi @cowalenciawebs

    Thank you for the detailed explanation.

    Currently, the plugin does not support overriding files such as public/partials/profile-magic-add-blog.php from a child theme in the same way themes do. Only form templates (for example, add-blog-tpl.php) are designed to be theme-overrideable. Any direct changes made to this file will indeed be overwritten during plugin updates.

    At the moment, there is no built-in hook or filter available to replace wp_insert_post with wp_update_post in that specific file. However, we understand your requirement regarding associating images with posts and handling cleanup when a post is deleted.

    We have noted this requirement and forwarded it to our development team for consideration in future updates. Let us know if you have any other questions.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.