Fix checking if the block placement is active

This commit is contained in:
Narek Zakarian 2024-04-02 15:10:35 +04:00
parent 155677934a
commit b4e1ce3eb8
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -40,7 +40,7 @@ class PayLaterBlockModule implements ModuleInterface {
* @return bool true if the block is enabled, otherwise false.
*/
public static function is_block_enabled( SettingsStatus $settings_status ): bool {
return self::is_module_loading_required() && $settings_status->is_pay_later_messaging_enabled_for_location( 'woocommerceBlock' );
return self::is_module_loading_required() && $settings_status->is_pay_later_messaging_enabled_for_location( 'custom_placement' );
}
/**