Automattic\WooCommerce\Blocks\BlockTypes
CheckoutExpressPaymentBlock::initialize
Initialise the block
Method of the class: CheckoutExpressPaymentBlock{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->initialize();
CheckoutExpressPaymentBlock::initialize() CheckoutExpressPaymentBlock::initialize code WC 10.5.0
protected function initialize() {
parent::initialize();
$this->default_styles = array(
'showButtonStyles' => false,
'buttonHeight' => '48',
'buttonBorderRadius' => '4',
);
add_action( 'save_post', array( $this, 'sync_express_payment_attrs' ), 10, 2 );
}