Home › Forums › Backend Issues (wp-admin) › Admin File Field Values not Displaying on Post Save – Custom Metabox › Reply To: Admin File Field Values not Displaying on Post Save – Custom Metabox
Could you please tell me how do you hide the meta box?
What you did basically is recreating the file field type by copying/pasting the code without knowing how it works. This is not a good idea as it can create a security issue in the future.
I believe append() function doesn’t need a lot of resources, especially with the high specs machines in the current days. And I think it’s rational to sacrifice a small amount of resource on the backend rather than leaving your server vulnerable. Not to mention that it is easier to be implemented and maintained.
But, if you still want to do it using PHP code, I’m afraid I can’t help you. I’m sorry about that.
I hope this makes sense 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.