Support » Plugin: WooCommerce Pay Per Post » paywall content

  • Resolved codemacher

    (@codemacher)


    I have a question about a certain topic: the get_paywall_content() function processes the woocommerce products shortcode, but only replaces product_id with the first entry in the array of product ids. Is this a wanted behaviour or it is possible to change it in the way, multiple ids will be passed comma-separated?
    Or do i something totally wrong?

    Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I changed line 317 in class-woocommerce-pay-per-post-public.php to:

    return do_shortcode( str_replace( '{{product_id}}', implode(', ',$product_ids), $paywall_content ) );

    Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Awesome catch! I will put that patch in a future release! Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘paywall content’ is closed to new replies.