5, 'blocking' => false, 'headers' => array( 'Authorization' => 'Bearer ' . $peppolkit_key ), ) ); } delete_option( 'peppolkit_api_key' ); delete_option( 'peppolkit_settings_cache' ); global $wpdb; // phpcs:ignore WordPress.DB.DirectDatabaseQuery $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE '\\_transient\\_peppolkit\\_%' OR option_name LIKE '\\_transient\\_timeout\\_peppolkit\\_%'" ); if ( function_exists( 'as_unschedule_all_actions' ) ) { foreach ( array( 'peppolkit_send_order', 'peppolkit_send_refund' ) as $peppolkit_hook ) { as_unschedule_all_actions( $peppolkit_hook ); } as_unschedule_all_actions( '', array(), 'peppolkit' ); }