I’m making an attempt to submit a kind from the WP_filesystem. I notice this could be a bit substandard, however this is what I am making an attempt to do.
- Consumer clicks the browse button, and wp_filesystem is invoked and commonplace file dialog field seems.
- Consumer selects file and when the open button is pressed, the file dialog field (along with no matter else it does), submits a kind with the chosen picture.
This really works fairly properly for the media library window utilizing the next code:
wp.media.wpUserAvatar.body().state('library').on('choose', operate() {
jQuery("[class='name-of-form'] input[type='submit']").click on();
});
So I am hoping there’s an equal for the usual wp_filesystem window.
thanks!