( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) >= 400 ) { $error = is_wp_error( $response ) ? $response->get_error_message() : wp_remote_retrieve_body( $response ); $this->notification_error( $topic, $error, $item_id ); return false; } do_action( 'woocommerce_gla_debug_message', sprintf( 'Notification - Item ID: %s - Topic: %s - Data %s', $item_id, $topic, wp_json_encode( $data ) ), __METHOD__ ); return true; } /** * Logs an error. * * @param string $topic * @param string $error * @param int|null $item_id */ private function notification_error( string $topic, string $error, $item_id = null ): void { do_action( 'woocommerce_gla_error', sprintf( 'Error sending notification for Item ID %s with topic %s. %s', $item_id, $topic, $error ), __METHOD__ ); } /** * Performs a Remote Request * * @param array $args * @return array|\WP_Error */ protected function do_request( array $args ) { return Client::remote_request( $args, wp_json_encode( $args['body'] ) ); } /** * Get the route * * @return string The route. */ public function get_notification_url(): string { return $this->notification_url; } /** * If the Notifications are ready * This happens when the WPCOM API is Authorized and the feature is enabled. * * @param bool $with_health_check If true. Performs a remote request to WPCOM API to get the status. * @return bool */ public function is_ready( bool $with_health_check = true ): bool { return $this->options->is_wpcom_api_authorized() && $this->is_enabled() && $this->merchant_center->is_ready_for_syncing() && ( $with_health_check === false || $this->account_service->is_wpcom_api_status_healthy() ); } /** * If the Notifications are enabled * * @return bool */ public function is_enabled(): bool { return apply_filters( 'woocommerce_gla_notifications_enabled', true ); } } Shop | WETBAG

Ergebnisse 697 – 708 von 1044 werden angezeigt

Sort by:

Shop

PTNKUIIY wasserdichte Stofftasche Nasstasche Wetbag | Waschbar Mini

Aktueller Preis ist: 5,99 €. Ursprünglicher Preis war: 42,98 €