WC Paid Listings snippets

← Back to WooCommerce Paid Listings

Note: All code examples on this site are provided for developer reference/guidance only and we cannot guarantee that they will always work as expected. Our support policy does not include assistance with modifying or debugging code from any code examples, and they may be changed or removed if we find they no longer work due to changes in our plugins.

Please use the Code Snippets plugin, rather than adding the code samples below directly to your theme’s functions.php file. That will help ensure that any code errors won’t crash your site, and the changes will not be overwritten when you update your theme.

Remove the “My Packages” section from My Account

add_action( 'plugins_loaded', 'dj_remove_my_jobs', 20 );

function dj_remove_my_jobs() {
	remove_action( 'woocommerce_before_my_account', array( WC_Paid_Listings_Orders::get_instance(), 'my_packages' ) );
WooCommerce Paid Listings Documentation