Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow UI rendering outside of the standard meta box #36

Open
petenelson opened this issue Jun 5, 2019 · 1 comment
Open

Allow UI rendering outside of the standard meta box #36

petenelson opened this issue Jun 5, 2019 · 1 comment

Comments

@petenelson
Copy link
Contributor

On a client project, we want to add the content connect UI to a custom WooCommerce product tab. Changing render() and other methods within the MetaBox class to be static methods would allow other code to easily render the UI in different parts of the WP admin instead of just the built-in meta boxes.

@petenelson
Copy link
Contributor Author

We also have product variations for one product (basically multiple posts in one page), with each variation needing the content connect metabox UI. The current implementation only allows for one Vue app https://github.com/10up/wp-content-connect/blob/master/assets/js/src/content-connect.js#L15

Extending this to use a localized window object targeting multiple DOM elements may allow this to be used multiple times.

@jeffpaul jeffpaul added this to the Future Release milestone Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants