
內容簡介
- 外掛名稱:Postr For Nostr
- 功能:
- 只能與NIP-07瀏覽器擴展一起使用,不需要在WordPress中保存私鑰。
- 可將稅目分類添加到記事中作為標籤。
- 在postring之前管理中繼站。
- 透過此連結可以使用Postr For Nostr的WordPress示範安裝。
- 使用方法:
- 登錄用戶可以在管理列操作中找到「Post to Nostr」按鈕(位於「快速編輯」操作旁邊)。
- 如果您想為訪問者提供Postr For Nostr,只需在模板的任意位置放置一個按鈕。請確保按照下面的示例添加「postr-for-nostr」類、「data-post-id」和「data-post-type」屬性。
- 可透過「Post Type Filter」篩選器選擇要進行nostr postring的帖子類型。
- nbd-wtf/nostr-tools:供應商連結。
- 請尊重GPL v3許可證,可透過http://www.gnu.org/licenses/gpl-3.0.html獲取。
問題與答案:
1. Postr For Nostr是什麼?
- Postr For Nostr是一個WordPress外掛,可將WordPress帖子分享到Nostr。
2. Postr For Nostr需要什麼條件?
- Postr For Nostr僅與NIP-07瀏覽器擴展配合使用,不需要在WordPress中保存私鑰。
3. 我該如何添加稅目分類到評論?
- 您可以將稅目分類添加到評論中作為標籤,將其類型設置為「t」。
4. 如何在WordPress中使用Postr For Nostr?
- 登錄的用戶可以在管理操作欄中找到「Post to Nostr」按鈕,點擊該按鈕即可分享該帖子到Nostr。如果要提供給訪問者使用,只需在模板中加入一個按鈕,並添加特定的類和屬性。
5. 如何過濾要進行Nostr postring的帖子類型?
- 可以使用「Post Type Filter」篩選器進行帖子類型的過濾。
6. 請問可找到Postr For Nostr的供應商連結嗎?
- 可以在nbd-wtf/nostr-tools的GitHub連結找到Postr For Nostr的供應商資訊。
7. Postr For Nostr的使用有任何限制嗎?
- 使用此代碼可以自由、廣泛且免費。代碼的提供和使用不提供和意味著擔保。請遵守GPL v3許可證。
外掛標籤
開發者團隊
原文外掛簡介
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.
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
