WP Manifestindependent plugin directory
manifest / integrations / myturnwordpress

MyTurn

Wordpress plugin too embed MyTurn Library of Things Saas product

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/edwinlove/myturnwordpress/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

MyTurn WordPress plugin

The plugin is a WordPress adapter for packages/myturn-core. The core contains page URL rules, application use cases, and the Guzzle/DOM metadata adapter; this plugin contains WordPress routes, shortcodes, output escaping, and SEO hooks.

Install for local development

From this directory, run composer install. The path repository links the sibling core package. For a standalone plugin distribution, publish edwinlove/myturn-core to a Composer repository and change the version constraint to a tagged release. Install the resulting vendor/ directory with the plugin.

The plugin requires PHP 8.4 or newer. Its edwinlove/myturn-core dependency supplies Guzzle 7 and the DOM extension. Configure the plugin under Settings → MyTurn. Set the tenant subdomain only, such as mylibrary or mylibrary.test; the plugin appends the fixed .myturn.com suffix. The WordPress thing and search URL patterns are configurable there and must end in {id} and {query} respectively. The internal MyTurn paths remain fixed by the integration. Canonical URLs use the WordPress site URL.

WordPress pages and routes

Create normal WordPress pages for the catalogue, sign-up, and login, then add the shortcode with the corresponding MyTurn path:

[myturn_embed path="inventory/browse/"]
[myturn_embed path="createUser"]
[myturn_embed path="myTurnLogin/auth"]

Thing and search pages default to /thing/{id} and /thing/search/{query}. Their public paths can be changed in Settings → MyTurn; the plugin flushes rewrite rules after route changes. The plugin renders those routes with the active theme header/footer and the MyTurn iframe. Enable a pretty permalink structure in Settings → Permalinks for these path routes; the shortcodes on ordinary WordPress pages work with any permalink setting. Rewrite rules are flushed on activation and deactivation.

On these dynamic routes the plugin fetches MyTurn Open Graph title, description, and image metadata. On thing pages it sets og:url to the configured WordPress canonical URL. It adapts these values to Yoast SEO and Rank Math when either is active, and emits fallback canonical/Open Graph tags otherwise. Use one SEO plugin to manage site-wide title, description, Twitter card, and sitemap settings; those settings replace the former Leogout and Presta Symfony bundles.

The Guzzle adapter treats metadata as optional: failed requests or missing Open Graph data do not prevent the iframe from rendering. Adjust the client timeout or add logging/ caching in the WordPress infrastructure layer if production traffic requires it.