Create and manage Shlink short links from WordPress
Author: | The Markup (profile at wordpress.org) |
WordPress version required: | 4.5 |
WordPress version tested: | 6.0.0 |
Plugin version: | 0.1.0 |
Added to WordPress repository: | 26-10-2022 |
Last updated: | 26-10-2022 |
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | |
Total downloads: | 808 |
Click to start download |
This plugin is a work in progress; development is ongoing.
A WordPress dashboard interface for managing a self-hosted Shlink URL shortener instance.
- Create and edit Shlinks short links from a manager interface
- Optionally generate new short URLs upon saving new posts
- Manage multiple short URL domains, with an assigned default
- Automatically tag each short link, configurable with a filter hook
- Customize long URLs automatically using a filter hook (e.g., to add query arguments)
- Integrates with WordPress Sentry plugin, if installed
Filter hooks
smol_links_tags
– assigns tags to each saved short link (default:["smol-links-server:$hostname", "smol-links-user:$username"]
)smol_links_long_url
– automatically adjust the long URL redirectsmol_links_manager_tabs
– customizes the manager tabs (array: [“Tab label” => [Shlink API query]])
Developer setup
Developer dependencies:
- node.js (tested on v16)
- Docker Desktop
Build and start:
./bin/build.sh
./bin/start.sh
Running tests:
docker-compose exec web composer --working-dir="/var/www/html/wp-content/plugins/smol-links" test
Screenshots
ChangeLog