MediaUpload component is not displayed in the theme settings page #45693
weweloo
started this conversation in
Developer Experience
Replies: 1 comment
-
Hey, do you have Wordpress store access on your settings page? The component checks on useSelect if you have got permission, maybe this could be an issue? you can easily test this by calling wp.data.select('core/block-editor') on your theme settings page. Why not using also the rest api to upload new images? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m developing a WordPress theme settings page using React and there is a file upload function in this page. But the upload button cannot be displayed in the page, and there is no error reported by checking the console. But if I import this component into the Gutenberg editor, the component can be displayed normally.
I use MediaPlaceholder component in this setting page, I am prompted that I do not have permission to upload files. But I'm logged in with my admin account. My theme setting page is implemented using the rest api.
Beta Was this translation helpful? Give feedback.
All reactions