Skip to content

Commit

Permalink
fix: donate block layout for NRH
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Feb 28, 2024
1 parent 331bd84 commit 51ff6c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/class-donations.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ public static function is_woocommerce_suite_active() {
* @return bool True if available, false if not.
*/
public static function can_use_name_your_price() {
// If the donation platform is NRH, the Donate block should behave as if Name Your Price is available.
if ( self::is_platform_nrh() ) {
return true;
}

return class_exists( 'WC_Name_Your_Price_Helpers' );
}

Expand Down

0 comments on commit 51ff6c3

Please sign in to comment.