Açıklama
Share your WordPress Posts to Nostr with Postr For Nostr 🫂
Features
- This plugin works only with NIP-07 browser extensions. No need to save your private key in WordPress.
- Add your taxonomy terms to the note as tag type
t. - Manage relays before postring.
Demo
A demo WordPress installation with Postr For Nostr is available here.
Usage
Logged in users will find a Post to Nostr button in the admin column actions (where the Quick Edit action is located).
If you want to provide Postr For Nostr to your visitors, simply place a button somewhere in your template. Make sure to add the postr-for-nostr class, data-post-id and data-post-type attribute as shown below.
<button type="button" class="postr-for-nostr" data-post-id="[ID]" data-post-type="[POST_TYPE]">Share</button>
Filters
Post Type Filter
Per default post, page and all registered custom post types will be allowed to be nostr postred. The allowed post types are filterable with a filter hook:
add_filter( 'postr_for_nostr_post_types', function( $post_types ) {
// unset('post_type');
return $post_types;
}, 10, 1 );
Vendors
- nbd-wtf/nostr-tools: https://github.com/nbd-wtf/nostr-tools
License
Use this code freely, widely and for free. Provision of this code provides and implies no guarantee.
Please respect the GPL v3 licence, which is available via http://www.gnu.org/licenses/gpl-3.0.html
Ekran Görüntüleri


Yükleme
- Upload the
postr-for-nostrfolder to the/wp-content/plugins/directory - Activate the plugin through the
Pluginsmenu in WordPress.
İncelemeler
Bu eklenti için herhangi bir değerlendirme bulunmuyor.
Katkıda Bulunanlar ve Geliştiriciler
“Postr For Nostr” açık kaynaklı yazılımdır. Aşağıdaki kişiler bu eklentiye katkıda bulunmuşlardır.
Katkıda bulunanlar“Postr For Nostr” eklentisini dilinize çevirin.
Geliştirmeyle ilgilenir misiniz?
Kodu görüntüleyin, SVN deposuna göz atın ya da RSS ile geliştirme günlüğüne abone olun.
Değişiklik Kaydı
1.0.5
- Deal with HTML entities while getting post data.
1.0.4
- Fix nostr-tools breaking changes 😑
1.0.3
- Build update. Fetch user relay list (kind 10002) to postr to nostr.
1.0.2
- Fix issue: Postr for Nostr window URL is wrong when WordPress is installed in subdirectory.
1.0.1
- Compatibility check. Adapt internationalization improvements in 6.7 – load textdomain on
initand fixget_plugin_data.
1.0.0
- Initial version.
