{"id":179320,"date":"2023-10-26T07:40:07","date_gmt":"2023-10-26T07:40:07","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/nostr-postr\/"},"modified":"2026-01-12T13:37:57","modified_gmt":"2026-01-12T13:37:57","slug":"postr-for-nostr","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/postr-for-nostr\/","author":17005105,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.5","stable_tag":"1.0.5","tested":"6.9.4","requires":"","requires_php":"7.4","requires_plugins":null,"header_name":"Postr For Nostr","header_author":"joelmelon","header_description":"Share your WordPress posts to Nostr with Nostr Postr \ud83e\udec2","assets_banners_color":"9d579a","last_updated":"2026-01-12 13:37:57","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/postr-for-nostr.joelstuedle.ch\/","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/postr-for-nostr\/","header_author_uri":"https:\/\/postr-for-nostr.joelstuedle.ch","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1200,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["installation","changelog","description"],"tags":{"1.0.0":{"tag":"1.0.0","author":"joelmelon","date":"2025-01-14 09:21:33"},"1.0.1":{"tag":"1.0.1","author":"joelmelon","date":"2025-01-14 09:54:33"},"1.0.2":{"tag":"1.0.2","author":"joelmelon","date":"2025-02-12 09:14:09"},"1.0.3":{"tag":"1.0.3","author":"joelmelon","date":"2025-05-26 11:31:09"},"1.0.4":{"tag":"1.0.4","author":"joelmelon","date":"2025-05-26 11:31:09"},"1.0.5":{"tag":"1.0.5","author":"joelmelon","date":"2026-01-12 13:37:57"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-1024-1024.png":{"filename":"icon-1024-1024.png","revision":2984216,"resolution":"1024x1024","location":"assets","locale":""},"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":2984216,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":2984216,"resolution":"256x256","location":"assets","locale":""},"icon-512x512.jpg":{"filename":"icon-512x512.jpg","revision":2984216,"resolution":"512x512","location":"assets","locale":""},"icon-64x64.jpg":{"filename":"icon-64x64.jpg","revision":2984216,"resolution":"64x64","location":"assets","locale":""},"icon-96x96.jpg":{"filename":"icon-96x96.jpg","revision":2984216,"resolution":"96x96","location":"assets","locale":""}},"assets_banners":{"banner-1544x500-rtl.png":{"filename":"banner-1544x500-rtl.png","revision":2984216,"resolution":"1544x500","location":"assets","locale":""},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2984216,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250-rtl.png":{"filename":"banner-772x250-rtl.png","revision":2984216,"resolution":"772x250","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2984216,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5"],"block_files":[],"assets_screenshots":{"screenshot-1.gif":{"filename":"screenshot-1.gif","revision":2984216,"resolution":"1","location":"assets","locale":""},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":2984216,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"A preview of postring to Nostr with Postr For Nostr.","2":"The Post to Nostr button in the WordPress admin column actions."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[222628,220135,324,174],"plugin_category":[],"plugin_contributors":[174518],"plugin_business_model":[],"class_list":["post-179320","plugin","type-plugin","status-publish","hentry","plugin_tags-nip-07","plugin_tags-nostr","plugin_tags-sharing","plugin_tags-social","plugin_contributors-joelmelon","plugin_committers-joelmelon"],"banners":{"banner":"https:\/\/ps.w.org\/postr-for-nostr\/assets\/banner-772x250.png?rev=2984216","banner_2x":"https:\/\/ps.w.org\/postr-for-nostr\/assets\/banner-1544x500.png?rev=2984216","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/postr-for-nostr\/assets\/icon-128x128.jpg?rev=2984216","icon_2x":"https:\/\/ps.w.org\/postr-for-nostr\/assets\/icon-256x256.jpg?rev=2984216","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/postr-for-nostr\/assets\/screenshot-1.gif?rev=2984216","caption":"A preview of postring to Nostr with Postr For Nostr."},{"src":"https:\/\/ps.w.org\/postr-for-nostr\/assets\/screenshot-2.jpg?rev=2984216","caption":"The Post to Nostr button in the WordPress admin column actions."}],"raw_content":"<!--section=installation-->\n<ol>\n<li>Upload the <code>postr-for-nostr<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the <code>Plugins<\/code> menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Deal with HTML entities while getting post data.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Fix nostr-tools breaking changes \ud83d\ude11<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Build update. Fetch user relay list (kind 10002) to postr to nostr.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Fix issue: Postr for Nostr window URL is wrong when WordPress is installed in subdirectory.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Compatibility check. Adapt internationalization improvements in 6.7 \u2013 load textdomain on <code>init<\/code> and fix <code>get_plugin_data<\/code>.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial version.<\/li>\n<\/ul>\n\n<!--section=description-->\n<p>Share your WordPress Posts to Nostr with Postr For Nostr \ud83e\udec2<\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li>This plugin <strong>works only with NIP-07 browser extensions<\/strong>. No need to save your private key in WordPress.<\/li>\n<li>Add your taxonomy terms to the note as tag type <code>t<\/code>.<\/li>\n<li>Manage relays before postring.<\/li>\n<\/ul>\n\n<h3>Demo<\/h3>\n\n<p>A demo WordPress installation with Postr For Nostr is available <a href=\"https:\/\/postr-for-nostr.joelstuedle.ch\/\">here<\/a>.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>Logged in users will find a <code>Post to Nostr<\/code> button in the admin column actions (where the <code>Quick Edit<\/code> action is located).<\/p>\n\n<p>If you want to provide Postr For Nostr to your visitors, simply place a button somewhere in your template. Make sure to add the <code>postr-for-nostr<\/code> class, <code>data-post-id<\/code> and <code>data-post-type<\/code> attribute as shown below.\n    <code>&lt;button type=\"button\" class=\"postr-for-nostr\" data-post-id=\"[ID]\" data-post-type=\"[POST_TYPE]\"&gt;Share&lt;\/button&gt;<\/code><\/p>\n\n<h3>Filters<\/h3>\n\n<p><strong>Post Type Filter<\/strong><\/p>\n\n<p>Per default <code>post<\/code>, <code>page<\/code> and all registered custom post types will be allowed to be nostr postred. The allowed post types are filterable with a filter hook:\n    <code>add_filter( 'postr_for_nostr_post_types', function( $post_types ) {\n    \/\/ unset('post_type');\n    return $post_types;\n}, 10, 1 );<\/code><\/p>\n\n<h3>Vendors<\/h3>\n\n<ul>\n<li>nbd-wtf\/nostr-tools: https:\/\/github.com\/nbd-wtf\/nostr-tools<\/li>\n<\/ul>\n\n<h3>License<\/h3>\n\n<p>Use this code freely, widely and for free. Provision of this code provides and implies no guarantee.\nPlease respect the GPL v3 licence, which is available via http:\/\/www.gnu.org\/licenses\/gpl-3.0.html<\/p>","raw_excerpt":"Share your WordPress Posts to Nostr with Postr For Nostr \ud83e\udec2","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/179320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=179320"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/joelmelon"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=179320"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=179320"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=179320"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=179320"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=179320"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=179320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}