
外掛標籤
開發者團隊
② 後台搜尋「Metered Content for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
Metered Content for WooCommerce adds flexible access plans and a publisher-friendly paywall to WordPress.
Unlimited access plans or a fixed number of unique articles per day, week, month, or year.
Repeat reads of the same article do not consume another credit in the same period.
Metered paywall: let readers without a plan open a number of free articles per period before the paywall.
Restrict individual posts, whole post types, or any category, tag, and custom-taxonomy term.
Sell plans with ordinary WooCommerce products as fixed-duration passes; buying again extends the pass.
Automatically recognize active WooCommerce Subscriptions when that extension is installed.
Refunded or cancelled orders revoke the access they granted.
Manual grant and revoke from the user profile.
Hard, partial-preview, and metered paywall presentations.
Shortcodes for partial-content protection, remaining usage, and pricing.
A WooCommerce My Account screen with plan usage and reading history.
Registration wall: visitors who run out of free articles are asked to create a free account for more, before being asked to pay.
Gift links: members share a link that opens one premium article for anyone, with a monthly limit and an expiry.
Expiry reminder e-mails before and after a pass expires, managed as WooCommerce e-mails.
Reports: reads, paywall views, sign-ups and purchases started at a paywall, attributed revenue, gift usage, top articles and active passes.
Notes
Guests must create an account when the cart contains a plan product, because access is attached to the account. Filter wcmc_require_account_for_plans to disable this; guest orders are then granted once WooCommerce links them to an account.
Metered free reads for visitors are tracked in a signed cookie, and metered premium pages are excluded from page caching (DONOTCACHEPAGE plus no-cache headers).
Only users with the manage_options capability (filter wcmc_manage_capability) can manage plans, settings and manual grants.
Reports count paywall views on article pages that are not served from a full-page cache; hard-paywall pages for visitors may be cached and undercounted.
Gift tokens are signed with the site salts; changing the salts invalidates outstanding gift links.
Shortcodes
[wcmc_premium_content plan="pro,unlimited"]Protected content[/wcmc_premium_content]
[wcmc_subscriber_only]Visible to members[/wcmc_subscriber_only]
[wcmc_non_subscriber_only]Visible to visitors without a plan[/wcmc_non_subscriber_only]
[wcmc_remaining_articles]
[wcmc_pricing_table]
Hooks
Filters: wcmc_access_result, wcmc_restriction, wcmc_paywall_args, wcmc_paywall_html, wcmc_teaser_text, wcmc_plans_url, wcmc_bypass_paywall, wcmc_should_meter_visitor, wcmc_require_account_for_plans, wcmc_manage_capability, wcmc_supported_post_types, wcmc_active_subscription_statuses, wcmc_reads_retention_days, wcmc_enqueue_frontend_style, wcmc_can_gift, wcmc_gift_box_html, wcmc_gift_notice_html.
Actions: wcmc_plan_granted, wcmc_plan_revoked, wcmc_read_recorded, wcmc_visitor_read_recorded, wcmc_paywall_rendered, wcmc_order_granted, wcmc_gift_created, wcmc_event_logged.
