MightyShare/mightyshare-wordpress-plugin
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
=== MightyShare - Auto-Generated Social Media Images === Contributors: someguy9 Donate link: https://www.buymeacoffee.com/someguy Tags: Social Preview, Open Graph, Social Media, Twitter Card, Open Graph Images Requires at least: 6.0 Tested up to: 7.0 Requires PHP: 7.4 Stable tag: 1.4.0 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl.html Automatically generate social share preview images with MightyShare! == Description == ### MIGHTYSHARE: GENERATE SOCIAL SHARE OPEN GRAPH IMAGES Automatically generate social share preview images (also known as Open Graph images) with **[MightyShare](https://mightyshare.io/)**! MightyShare takes your post title and featured image to generate a beautiful share image for your content. Compatible with posts, pages, and custom post types your social shares will look stunning in no time. Customize [templates](https://mightyshare.io/templates/) with your brand colors, logo, and more. To use the plugin you'll need to [create a free MightyShare account](https://mightyshare.io/register/). ### HOW DOES IT WORK? MightyShare sends your post's title, featured image, and post meta data to our server to generate a social share image on the fly using your API Key. ### FEATURES * **Automatically generate social share images** for posts and pages! * Images are pre-generated when you publish, so crawlers get an instant cached image. * Perfect solution for branded social images. * Robust customization. * SEO plugin compatibility: Yoast SEO, RankMath, All in One SEO, The SEO Framework, Slim SEO, Squirrly SEO, and SEOPress. * Adds open graph meta tags if you don’t have an SEO plugin. * **Multiple [templates](https://mightyshare.io/templates/)** to choose from. * New templates added all the time! * Works with custom post types. * [Developer hooks](https://mightyshare.io/docs/filters/) for creating just about anything! * Pick any Google Font to use in templates for paid plans. * Option to screenshot pages themselves for social images. == Installation == To install this plugin: 1. Download the plugin 2. Upload the plugin to the wp-content/plugins directory, 3. Go to "plugins" in your WordPress admin, then click activate. 4. Add a MightyShare.io API key into settings > MightyShare. 5. Ensure each post type is enabled you want MightyShare enabled on. == Frequently Asked Questions == =Is MightyShare free?= Yes! You can use MightyShare for free using our free account allowing you 50 renders a month. [Paid plans](https://mightyshare.io/pricing/) start at $5 that allow you to generate hundreds of social images. =How does image generation work?= The image generation process is performed on our servers. This is done by the plugin creating a unique signed URL that allows your API Key to generate a social share image on our server. The URL is then put in your head tag to be used as an og:image. If you have Yoast SEO or RankMath installed the plugin will automatically write their og:images if enabled. Otherwise the plugin will create an og:image meta tag with your unique URL. [Read our Privacy Policy](https://mightyshare.io/privacy-policy/) =When is an image rendered?= The MightyShare plugin places a signed MightyShare image URL onto your meta tags. Images are rendered on our servers the first time that URL is requested. Since version 1.4.0 the plugin pings that URL in the background whenever you publish or update a post, so the image is typically already rendered and cached before a social network crawler ever fetches your page. =Why aren't my images showing up?= If you are using an SEO plugin be sure to have a default image set for the type of content you want MightyShare to show on. For example in Yoast SEO you need to go to the Facebook section and set a default Open Graph image, this allows MightyShare to run filtering those meta tags. Additionally make sure you've cleared any caching mechanisms you may have. Still having issues? [Contact Us](https://mightyshare.io/contact/). == Screenshots == == Changelog == = 1.4.0 = * New: social share images are now pre-generated in the background when a post is published or updated. Previously the first crawler to request the image triggered the render, and a slow first render could make X/Twitter cache a blank card. The warm-up is queued via WP-Cron the moment you save — publishing never waits on it — and re-saving unchanged content resolves to the same signed URL, served from cache without a new render. * Bug fix: `Mightyshare_Public_Functions::get_mightyshare_url( $post_id )` now honors the `$post_id` argument outside the frontend loop (it previously always used the queried object), and returns an empty string instead of PHP warnings when no API key is configured. * Bug fix: feed renders no longer embed the page URL in the template values, so a post's feed and page now share a single cached render. * Performance: meta box definitions (including the Google Fonts list) are no longer built on every frontend request. * Template picker lists the standard templates first again — mesh templates are no longer the default for new installs. * Security & hardening: sanitize admin `$_GET` (page/tab/post) inputs, add `wp_unslash` to metabox saves, escape image URLs (`esc_url`), and replace incorrect `esc_attr` usage with `esc_html` for text output. * Bug fix: removed nested function declarations inside the options class constructor that could cause a fatal error if the class was instantiated more than once. Also fixed the `mightshare_metaboxes` typo. * Bug fix: corrected `MIGHTYSHARE_VERSION` constant which was out of sync with the plugin header (broke admin asset cache busting). * Bug fix: replaced bare `echo` of API key validation errors with `add_settings_error()` so failures render in the standard settings UI. * Performance: per-request caching of plugin options and active-plugins list (SEO plugin detection no longer re-reads `wp_options` 7+ times per request). * Added `uninstall.php` — plugin settings are removed when the plugin is deleted (per-post meta is preserved for re-installs). * Compatibility: bumped "Requires at least" to WordPress 6.0; tested up to WordPress 7.0. * i18n: load text domain from `/languages` (Domain Path) on `init`. = 1.3.21 = * New mesh templates added (mesh-1, mesh-2, mesh-3) — modern dark gradient-mesh designs with auto-derived palettes from your primary color. * Tested up to WordPress 7.0. = 1.3.20 = * New template added (standard-5, standard-6, float-3). * Tested up to WordPress 6.8. = 1.3.19 = * Bug fix for the Squirrly integration. = 1.3.18 = * Tested up to WordPress 6.7. * Added support for Squirrly SEO. = 1.3.17 = * Tested up to WordPress 6.6. * New template added (basic-5, basic-6). = 1.3.16 = * Bug fix for identifying if All in One SEO is active (and support for AIO SEO Pro). = 1.3.15 = * Bug fix for PHP warning. = 1.3.14 = * Bug fix for PHP warning. = 1.3.13 = * WordPress 6.5 compatibility. * [Frontend PHP](https://mightyshare.io/docs/get_mightyshare_url/) function added for developers to use. = 1.3.12 = * New template added (news-2). = 1.3.11 = * Tested up to WordPress 6.4. * PHP warning bug fixes. * API usage on MightyShare.io dashboard now shows the correct usage. = 1.3.10 = * New template added (news-1). = 1.3.9 = * New template added (business-2). * Tested up to WordPress 6.3. * Bug fixes. = 1.3.8 = * New template added (basic-4). * Updated Open Graph test link. * Code cleanup for future updates. = 1.3.7 = * New templates added (bar-1, bar-2 & bar-3). * Option to use MightyShare on author archive pages. * Updated [developer documentation](https://mightyshare.io/docs/filters/). * PHP warning bug fix. = 1.3.6 = * New template added (float-2). = 1.3.5 = * PHP warning bug fix. = 1.3.4 = * New template added (standard-4). = 1.3.3 = * Added support for SEOPress. * PHP warning bug fix. = 1.3.2 = * Tested up to WordPress 6.1. * PHP compatibility fix for PHP 7. = 1.3.1 = * PHP warning bug fix. = 1.3.0 = * Minimum PHP version upgraded to 7.4 as older versions are at their end of life. * New templates travel-1, bold-3 & basic-3. * Upgraded the template picker when modifying a single post. * Only load template examples if browse templates is clicked (speeds up admin). * Added support for Slim SEO. = 1.2.0 = * Google Font selection for users on a paid plan. * New template options modal. * Bug fix template selector not showing up correctly. = 1.1.3 = * Changed default render format to JPEG from PNG. * Option to use post excepts as subheadings in MightyShare templates. * Bug fix for MightyShare not setting a correct height/width for OG images when using Yoast. * Bug fix that didn't allow settings checkboxes to be unchecked. * Bug fix for initial install showing PHP warnings. = 1.1.2 = * Bug fix when overwriting background image urls with the MightyShare filter. = 1.1.1 = * New template browser to easily select a template. * New API Key details when entered in the MightyShare settings. * New template (float-1). = 1.1.0 = * New feature that allows you to overwrite template options by post type. * Added option to provide a fallback image. * New option to overwrite post titles that is used for the MightyShare renders. * Grey color added to background of logo field so you can see white logos. * Plenty of bug fixes. = 1.0.8 = * Added ability to enable MightyShare on taxonomies (archive pages)! * Code bug fixes. = 1.0.7 = * 3 New templates added (8bit-1, bold-1 and bold-2). * Bug fixes causing MightyShare not to display. = 1.0.6 = * New template added (clean-3). = 1.0.5 = * Bug fix preventing posts from showing the correct MightyShare state. = 1.0.4 = * New template added (mighty-3). * Bug fix MightyShare not working on custom post types. * Bug fix for logo display in settings. = 1.0.3 = * Added compatibility with All in One SEO Pack and The SEO Framework. * 2 new template added (standard-3 and clean-1). = 1.0.2 = * PHP bug fix. * Show detected SEO plugin on settings page. = 1.0.1 = * Bug fix for plugin install message. = 1.0.0 = * Initial Release.