You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #952, this lists all the hooks that are used in Meta Box plugin. I hope that can help making the plugin works with Gutenberg:
Scripts, styles are enqueued using admin_enqueue_scripts. We do check for the current screen (via get_current_screen) to make sure scripts and styles are enqueued only for that pages. For the core plugin, it checks by post types. For extensions (term meta, user meta, settings page), it checks more for taxonomies, user profile page or settings pages.
We also use print_media_templates to print Underscore templates.
Scripts we use in the plugin includes: color picker, underscore, backbone, media scripts, tinymce (for the editor field)
We use init to initialize all the hooks for the plugin.
Meta boxes are registered using add_meta_boxes hooks.
Hidden meta boxes use default_hidden_meta_boxes.
We also hook to post_edit_form_tag to allow upload files.
We use save_post_{$post_type} and edit_attachment, add_attachment to save meta values for posts and attachments.
The text was updated successfully, but these errors were encountered:
As discussed in #952, this lists all the hooks that are used in Meta Box plugin. I hope that can help making the plugin works with Gutenberg:
admin_enqueue_scripts
. We do check for the current screen (viaget_current_screen
) to make sure scripts and styles are enqueued only for that pages. For the core plugin, it checks by post types. For extensions (term meta, user meta, settings page), it checks more for taxonomies, user profile page or settings pages.print_media_templates
to print Underscore templates.init
to initialize all the hooks for the plugin.add_meta_boxes
hooks.default_hidden_meta_boxes
.post_edit_form_tag
to allow upload files.save_post_{$post_type}
andedit_attachment
,add_attachment
to save meta values for posts and attachments.The text was updated successfully, but these errors were encountered: