-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
readme.txt
94 lines (65 loc) · 2.6 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
=== Smol Links ===
Contributors: dphiffer
Donate link: https://themarkup.org/donate
Tags: short url, shlink
Requires at least: 4.5
Tested up to: 6.6.1
Requires PHP: 7.3
Stable tag: 0.4.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Create and manage Shlink short links from WordPress
== Description ==
A WordPress dashboard interface for managing a self-hosted [Shlink URL shortener](https://shlink.io/) 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](https://wordpress.org/plugins/wp-sentry-integration/) 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 redirect
* `smol_links_manager_tabs` - customizes the manager tabs (array: ["Tab label" => [*Shlink API query*]])
=== Developer setup ===
__Developer dependencies:__
* [node.js](https://nodejs.org/) (tested on v20)
* [Docker Desktop](https://www.docker.com/products/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 ==
1. Upload `smol-links` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. 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
== Upgrade Notice ==