Filters for Pay For Post with WooCommerce

wc_pay_per_post_args This filter allows you to override the WP Query arguments for the shortcodes. Example: add_filter('wc_pay_per_post_args', 'my_theme_wc_ppp_args'); function my_theme_wc_ppp_args($args){ $args['orderby'] = 'menu_order'; return $args; } wc_pay_per_post_shortcode_has_access_no_posts This filter allows you…

Continue ReadingFilters for Pay For Post with WooCommerce

Shortcodes for Pay For Post with WooCommerce

Default Shortcode [woocommerce-payperpost template='purchased' orderby='post_date' order='DESC'] Options The base shortcode comes with a variety of options. template [woocommerce-payperpost template='purchased|has_access|remaining|all'] purchased This is the default template. It displays all of the…

Continue ReadingShortcodes for Pay For Post with WooCommerce