Filters for WooCommerce Pay Per Post

You are here:
← All Topics

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_purchased_content_title PREMIUM ONLY

This filter allows you to override the title that appears on order confirmation screen an email that lists out the purchased content

Example:

add_filter( 'wc_pay_per_post_purchased_content_title', function () {
	return 'Access your purchased content by clicking links below';
} );

wc_pay_per_post_languages_title PREMIUM ONLY

Only used when POLYLANG plugin support is enabled! This filter allows you to override the title that appears on order confirmation screen an email that normally says “Additional Languages”

Example:

add_filter( 'wc_pay_per_post_languages_title', function () {
	return 'Content is available in the following translations';
} );

wc_pay_per_post_my_account_tab_title PREMIUM ONLY

This filter allows you to override the title of the tab on the My Account page

Example:

add_filter( 'wc_pay_per_post_my_account_tab_title', function () {
	return 'Purchased Videos';
} );
Close Menu