
內容簡介
總結:
Sesamy 外掛為 WordPress 網站添加了使用 Sesamy 在文章和自訂文章類型中的付費牆功能,無需自己編寫程式進行整合。
問題與答案:
問題1:Sesamy 外掛的功能是什麼?
答案1:
- 配置外掛應該啟用付費牆的文章類型
- 能夠在每篇文章中啟用/停用付費牆
- 根據單次購買和 Sesamy 通行證的訪問級別,對文章設定存取級別
- 為每篇文章設定自訂價格和/或通行證
- 能夠根據內容的安全性配置保護級別
問題2:使用該外掛需要什麼?
答案2:使用該外掛需要在 Sesamy 網站 (sesamy.com) 註冊帳戶。
問題3:該外掛有哪些可用於修改默認輸出的過濾器?
答案3:
- sesamy_content:修改文章內容的過濾器
- sesamy_content_container:修改內容容器的過濾器
- sesamy_paywall_seo:修改付費牆 SEO 的過濾器
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
The Sesamy plugin adds paywall functionality for posts and custom post types using Sesamy to your WordPress website without having to write code to integrate yourself.
Features:
Configure which post types plugin should enable the paywall
Ability to turn the paywall on/off per post
Access levels to posts based on both single-purchase and Sesamy passes.
Set a custom price and/or pass per article
Ability to configure protection level based on how secure your content is
Ability to bulk edit paywall settings when bulk editing posts in WordPress Admin
Please note that using this plugin requires an account with Sesamy (sesamy.com).
Filters
The following filters can be used to modify the default output from the plugin:
add_filter( 'sesamy_content', 'my_sesamy_content', 10, 2);
function my_sesamy_content( $post, $content ) {
return $content;
}
add_filter( 'sesamy_content_container', 'my_sesamy_content_container', 10, 1);
function ( $content_container ){
return $content_container;
}
add_filter( 'sesamy_paywall_seo', 'my_paywall_seo_callback', 10, 2);
function my_paywall_seo_callback( $default_seo, $post ) {
return $default_seo;
}
// The preview in the paywall
add_filter( 'sesamy_paywall_preview', 'my_sesamy_paywall_preview', 10, 1);
function my_sesamy_paywall_preview( $default_preview ) {
return $default_preview;
}
