How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

How to add custom entries to the editor Preview dropdown

calendar_today February 19, 2026 person Birgit Pauli-Haack domain wordpress

Since WordPress 6.7, plugin developers can extend the Preview dropdown in the editor with custom menu items. This is possible through the PluginPreviewMenuItem component from the @wordpress/editor package. This article walks through building a small plugin that adds a “Social Card Preview” option — showing how a post will look when shared on X.

open_in_new Read original post