Inside woocommerce-square/includes/Gateway/Digital_Wallet.php the ‘apple_pay_domain_registration’ callback that is supposed to happen after init never gets fired.
/**
* Setup the Digital Wallet class
*
* @since 2.3
*/
public function __construct( $gateway ) {
$this->gateway = $gateway;
if ( ‘yes’ === $gateway->get_option( ‘enabled’, ‘no’ ) && $this->is_digital_wallet_enabled() ) {
add_action( ‘wp’, array( $this, ‘init’ ) );
add_action( ‘admin_notices’, array( $this, ‘admin_notices’ ) );
}
if ( is_admin() && ( $gateway->get_plugin()->is_gateway_settings() || $gateway->get_plugin()->is_plugin_settings() ) ) {
add_action( ‘init’, array( $this, ‘apple_pay_domain_registration’ ) ); // <– NEVER FIRES
}
If you change the hook to be 'admin_notices' it works just fine…
Open
Last updated: April 5, 2023
0 comments
Log in to comment on this feature request.