the-markup / wp-shlink
Create and manage Shlink short links from WordPress
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 2
Forks: 2
Type:wordpress-plugin
Requires (Dev)
- phpunit/phpunit: ^9.6
- yoast/phpunit-polyfills: ^2.0
- dev-main
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.0
- v0.1.1
- v0.1.0
- v0.0.1
- dev-dependabot/npm_and_yarn/multi-ecd1e76d0f
- dev-dependabot/npm_and_yarn/multi-63fbbd1def
- dev-dependabot/npm_and_yarn/multi-db17b8dbde
- dev-dependabot/npm_and_yarn/webpack-5.98.0
- dev-dependabot/npm_and_yarn/multi-47f78ba108
- dev-dependabot/npm_and_yarn/babel/helpers-7.27.0
- dev-dependabot/npm_and_yarn/micromatch-4.0.8
- dev-dependabot/npm_and_yarn/nanoid-3.3.11
- dev-dependabot/npm_and_yarn/multi-9f4f5973b4
- dev-dependabot/npm_and_yarn/babel/runtime-7.27.0
- dev-dependabot/npm_and_yarn/axios-1.8.4
- dev-dependabot/npm_and_yarn/multi-b4d14387f7
- dev-dependabot/npm_and_yarn/http-proxy-middleware-2.0.7
- dev-dependabot/npm_and_yarn/multi-6bc014718a
- dev-docker-compose
This package is not auto-updated.
Last update: 2025-08-10 13:23:41 UTC
README
Create and manage Shlink short links from WordPress
Description
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 v20)
- Docker Desktop
Build and start:
./bin/build
./bin/start
Running tests:
docker compose exec web composer --working-dir="/var/www/html/wp-content/plugins/smol-links" test
Installation
- Upload
smol-links
folder to the/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress
- Configure the Smol Links settings from your WordPress dashboard
Screenshots
1. Create and manage Shlink short links from WordPress.
2. Configure your self-hosted Shlink server and optionally generate a short URL whenever a post is published.
3. The post editor includes the short URL in the sidebar.
Changelog
0.4.2
- Fix bug causing settings to not get saved
- Update dependencies
0.4.1
- Validate and sanitize settings
0.4.0
- Add search to manager interface
- URL validation on form inputs
0.3.1
- Remove Composer from installation
0.3.0
- Add pagination to Smol Links manager interface
0.2.0
- Update to Shlink v3 API
0.1.1
- Fix a bug with the Short Links manager
- Upgrade dependencies
0.1.0
- Release to WordPress plugin directory
- Security improvements
0.0.1
- Generate short URLs upon saving a post
- Create/edit short URLs from a manager