Must-Use Plugin: tweetable_callouts
Location: _project/_web/wp-content/mu-plugins/tweetable_callouts/
Purpose
Adds a TinyMCE editor button ("button_green") that wraps selected text in tweetable extract markup. Editors can highlight text and click the button to create shareable quotes.
How It Works
- Hooks into
admin_initto register TinyMCE plugin - Adds
button_greento the TinyMCE button row viamce_buttons - Loads external JS plugin via
mce_external_plugins - Passes the current post permalink to JavaScript via
before_wp_tiny_mce
Files
index.php— Main plugin file with all logic