mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Always include buttons and messages components when in editor
This commit is contained in:
parent
a33d8dea3d
commit
6d450d587f
4 changed files with 21 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue