Install
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/milindmore22/amp-pretty-links/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
AMP Compatibility Plugin for Pretty Permalink.
The plugin removes /amp/ endpoint from URL when you choose path suffix as your URL structure.
Notes
- Plugin useful when path suffix is used.
- Other URL structure will work normally
Plugin Structure
.
├── sanitizers
│ ├── class-sanitizer.php
└── amp-pretty-links.php
Sanitizers
The plugin uses amp_content_sanitizers filter to add custom sanitizers, to search for pretty links and remove thier amp endpoints.
Need a feature in plugin?
Feel free to create a issue, if you still didn't get it to working.