WordPress Developer Ukraine, Kyiv
Add Custom Fields to the WordPress Comment Form with Comment Meta

Add Custom Fields to the WordPress Comment Form with Comment Meta

Add a rating field to the WordPress comment form with comment meta Comments have their own meta table, which works like post meta: add_comment_meta(), update_comment_meta(), get_comment_meta(). With it the comment form can collect more than a name, an email and a text: a rating, an RSVP answer, a topic. WooCommerce product reviews are built exactly…
Add a Custom Panel to the Gutenberg Document Sidebar with PluginDocumentSettingPanel

Add a Custom Panel to the Gutenberg Document Sidebar with PluginDocument ...

Add a custom panel to the Document sidebar with PluginDocumentSettingPanel The Document tab of the block editor holds the post settings: status, permalink, categories, featured image. Since WordPress 5.3, plugins can add their own collapsible panel there with PluginDocumentSettingPanel. For a field that belongs to the whole post, like a release year or a “featured”…
Control WordPress Plugin and Theme Auto-Updates with auto_update_plugin Filter (WP 5.5)

Control WordPress Plugin and Theme Auto-Updates with auto_update_plugin ...

Control plugin and theme auto-updates with auto_update_plugin WordPress 5.5 added “Enable auto-updates” links to the Plugins and Themes screens: an administrator can switch automatic updates on per plugin or theme, and WordPress installs new versions in the background twice a day. The filters behind it, auto_update_plugin and auto_update_theme, have existed since WordPress 3.7, and they…