On Save Post, Create dynamic Folder in Upload folder

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

Leave a Reply

Your email address will not be published. Required fields are marked *