Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[July 2025] EE tax rate update from 22% to 24% #73

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

mircobabini
Copy link
Member

@mircobabini
Copy link
Member Author

mircobabini commented Feb 26, 2025

<?php

/**
 * This recipe will change EE vat tax rate to 0.24 after 1st July 2025
 *
 * title: Update VAT rate for Estonia after 1st July 2025
 * layout: snippet
 * collection: add-ons, pmpro-vat-tax
 * category: UK, EU
 *
 * You can add this recipe to your site by creating a custom plugin
 * or using the Code Snippets plugin available for free in the WordPress repository.
 * Read this companion article for step-by-step directions on either method.
 * https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
 */
function pmprovt_update_ee_vat_rate_on_20250701( $vat_by_country ) {
	$new_vat_rate = 0.24;
	if ( current_time( 'timestamp' ) > strtotime( '2025-07-01' ) && $vat_by_country['EE'] < $new_vat_rate ) {
		$vat_by_country['EE'] = $new_vat_rate;
	}

	return $vat_by_country;
}

add_filter( 'pmpro_vat_by_country', 'pmprovt_update_ee_vat_rate_on_20250701' );

@andrewlimaza andrewlimaza changed the base branch from master to dev February 27, 2025 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant