@@ -3,7 +3,7 @@ Contributors: unmus
33Tags: mastodon, toots, microblogging, blog, fediverse
44Requires at least: 6.1
55Tested up to: 6.5
6- Stable tag: 0.3
6+ Stable tag: 0.4
77License: GNU General Public License v3 or later
88License URI: https://www.gnu.org/licenses/gpl-3.0.html
99
@@ -105,7 +105,30 @@ TootPress creates 2 folders within the WordPress Uploads Directory.
105105
106106= TootPress API =
107107
108- WordPress Action: tootpress_toots_update (fired on toot update)
108+ **Action: tootpress_toots_update**
109+ It will be fired after toot update to execute custom post-processing.
110+ You can use the following code.
111+
112+ `function tootpress_toots_update_postprocessing() {`
113+ ``
114+ ` // Add your code to be executed here`
115+ ``
116+ `}`
117+ `add_action('tootpress_toots_update', 'tootpress_toots_update_postprocessing');`
118+
119+ **Filter: tootpress_preamble_add**
120+ It outputs html content before the toot loop.
121+ You can use the following code.
122+
123+ `function tootpress_preamble_add( $preamble ) {`
124+ ``
125+ ` // Add your filter code here`
126+ ` // Example: $preamble='<p>Hello World.</p>';`
127+ ``
128+ ` return $preamble;`
129+ ``
130+ `}`
131+ `add_filter( 'tootpress_preamble_filter', 'tootpress_preamble_add', 10, 1 );`
109132
110133= Related Links =
111134
@@ -142,6 +165,11 @@ No. TootPress does not support the WordPress Multisite Feature. The plugin is wo
142165
143166== Changelog ==
144167
168+ = 0.4 "Cassie Lang" =
169+
170+ * June 2024
171+ * Feature: Preamble Filter
172+
145173= 0.3 "Deadpool" =
146174
147175* April 2024
@@ -172,6 +200,9 @@ No. TootPress does not support the WordPress Multisite Feature. The plugin is wo
172200
173201== Upgrade Notice ==
174202
203+ = 0.4 =
204+ This version includes a preamble filter.
205+
175206= 0.3 =
176207This version brings gallery support and contains major bugfixes.
177208
0 commit comments