I have a custom post type called “event“, users submit it as “pending for review”, then admin approve the post to be published.
i also have a taxonomy called “academic-year”
i want to add function, after publishing a post.
automatically a folder created in “wp-content/uploads/{academic-year}/{post-ID}/{post name}

Read more here: On Save Post, Create dynamic Folder in Upload folder


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: