Support » Plugin: Pay For Post with WooCommerce » Group all posts (from CPT) to restricted.

  • Resolved zmrilly



    Is it possible to have all (old and new) posts that are created inside a custom post type automaticcaly be added as restricted content?

    I see that it’s only possible by doing it per post, I want to restrict an entire post type.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matt Pramschufer


    Sorry, that is not possible. You have to associate a product per post/page, you can not restrict based on tag, category, or cpt. I kinda like that idea though. If you wanted to add to the I can see if it gets some traction and get it into my development roadmap.



    Are you available to do custom work as described on a short term?

    I’ve removed the restriction from the post excerpt and I’ve already added this part:

    <?php if(Woocommerce_Pay_Per_Post_Helper::has_access()): ?>
    This is the content that a user should see if they paid for the post
    <?php else: ?>
    <?php echo Woocommerce_Pay_Per_Post_Helper::get_no_access_content(); ?>
    <?php endif; ?>

    to a shortcode and made it visible within a single page (of a custom post type).
    So that the post itself is visible but some meta info (mostly contactinfo) is behind the paywall.

    Users submit their content on my site, so adding those posts manually wouldn’t really be possible.

    Plugin Author Matt Pramschufer


    If you fill out support form for custom development I am sure I can help you out –

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.