Always include buttons and messages components when in editor

This commit is contained in:
Alex P 2023-12-12 10:52:33 +02:00
parent a33d8dea3d
commit 6d450d587f
No known key found for this signature in database
GPG key ID: 54487A734A204D71
4 changed files with 21 additions and 1 deletions

View file

@ -85,6 +85,9 @@ class SettingsStatus {
* @return bool true if is enabled, otherwise false.
*/
public function is_smart_button_enabled_for_location( string $location ): bool {
if ( $location === 'block-editor' ) {
$location = 'checkout-block';
}
return $this->is_enabled_for_location( 'smart_button_locations', $location );
}