Automattic\WooCommerce\Blocks\BlockTypes
CheckoutExpressPaymentBlock::initialize()
Initialise the block
Method of the class: CheckoutExpressPaymentBlock{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->initialize();
CheckoutExpressPaymentBlock::initialize() CheckoutExpressPaymentBlock::initialize code WC 9.6.1
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 ); }