跳到内容

WP to Firebase – Sync WooCommerce & WordPress to Firestore and Realtime Database

v2.2.1

Ali Nawaz · 2026年10月22日 上架

Sync WooCommerce products, orders and users to Cloud Firestore or Firebase Realtime Database as they change, for Flutter and FlutterFlow apps.

正在使用
10 以下
评分
暂无
累计下载
641
最近更新
2026年11月19日
需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+

贡献者

截图

Settings → WP to Firebase: choose Cloud Firestore or the Realtime Database, choose users, products or orders, turn on live updates and run a full sync.
Settings → WP to Firebase: choose Cloud Firestore or the Realtime Database, choose users, products or orders, turn on live updates and run a full sync.

WP to Firebase keeps Cloud Firestore or a Firebase Realtime Database in step with your WordPress site. Use it to power a mobile app built with Flutter, FlutterFlow, or React Native, a dashboard, or any service that reads from Firebase, without writing your own export code.

New in 2.1: Cloud Firestore, free. Firebase recommends Cloud Firestore for new apps, and FlutterFlow works with Firestore. Each product, order, and user becomes a document in a products, orders, or users collection. Items that have not changed since the last sync are skipped, so scheduled syncs stay inside Firestore’s free daily write quota.

What it syncs

  • WooCommerce products: name, prices, stock, images, categories, tags, attributes, and variations.
  • WooCommerce orders: status, totals, line items, shipping lines, and billing and shipping details.
  • WordPress users: email, display name, first and last name, roles, and registration date.

You choose which of these to sync. Products are on by default. Users and orders contain personal data, so they stay off until you turn them on.

How it works

  • Full sync: click “Sync now”, or schedule an hourly, twice-daily, or daily sync. Items are sent in the background, 50 at a time, so your site stays fast.
  • Live updates: when a product, order, or user is created, updated, or deleted, the change reaches Firebase a few seconds later.
  • Secure authentication: the plugin signs in with a Google service account and short-lived access tokens. Your private key is never shown again after you save it.
  • Safe by design: passwords, password reset keys, and other credentials are never sent. Nothing runs during normal page loads.
  • Compatible with WooCommerce High-Performance Order Storage (HPOS).

Free, with no Pro needed: Cloud Firestore and the Realtime Database, products, orders and users, live updates, scheduled full syncs, skipping unchanged items, named databases and collection prefixes, and the wpwtf_record filter for developers.

Data structure

In Cloud Firestore, each item is a document in its own collection, with an optional collection prefix:

products/product_42
orders/order_1057
users/user_7

Numbers, true/false values, lists, and nested details such as billing addresses and line items are stored with their proper Firestore types, so you can query and sort them.

In the Realtime Database, records are written under the path you choose (default wordpress), with keys prefixed by type:

wordpress/products/product_42
wordpress/orders/order_1057
wordpress/users/user_7

WP to Firebase Pro

WP to Firebase Pro is a separate add-on for apps that need the data in their own shape, or want to send push messages. The free plugin keeps every feature above, and Pro adds:

  • Field mapper: for products, orders and users, choose which fields are sent, rename each Firebase key and set its type (text, whole number, decimal, true/false or Unix time), down to single billing and shipping fields. The map is used for full syncs and live updates, in Cloud Firestore and the Realtime Database.
  • Custom meta: add up to 30 product, order or user meta keys per type, each with its own key and type. Keys that look like credentials, such as passwords, tokens or API keys, are refused.
  • Preview: see your newest product, order or user before and after the map, as JSON, before you sync.
  • Push messages with Firebase Cloud Messaging: send to a topic, or to a condition of up to 5 topics, when a post is published, and to the customer’s own topic when their order reaches a status you choose, with no names, emails or addresses in the message. Compose messages from WordPress, send them now or schedule them, check them with FCM without sending, and see every message in a send history.

Pro uses the service account you already added here. WP to Firebase Pro costs from $29 a year, with a 14-day refund policy. See WP to Firebase Pro.

Custom development

Need posts and custom post types, two-way sync, Firebase login, or a mobile app built on this data? The plugin is built and maintained by Ali Nawaz, a WordPress & Shopify developer who builds custom WordPress plugins.

External services

This plugin connects to Google services to write your data to Firebase. Nothing is sent until you add a service account key (and, for the Realtime Database, a database URL) and enable at least one type of data.

Google OAuth 2.0 token service (https://oauth2.googleapis.com/token)
Used to exchange your service account credentials for a short-lived access token. The plugin sends a request signed with your service account’s private key, containing the service account email and the requested permissions. This happens when a sync runs and no valid token is cached, at most about once an hour.

Cloud Firestore (https://firestore.googleapis.com)
Used when Cloud Firestore is chosen as the database. Receives the same data described below for the Realtime Database, as documents in your project’s Firestore database. Data is sent during a full sync, on your chosen schedule, and a few seconds after an item changes if live updates are on. “Test connection” reads at most one document.

Firebase Realtime Database (your database URL, ending in firebaseio.com or firebasedatabase.app)
Receives the data you choose to sync: product details, order details including customer names, email addresses, phone numbers, and billing and shipping addresses, and user details including email addresses, names, and roles. Data is sent during a full sync, on your chosen schedule, and a few seconds after an item changes if live updates are on.

These services are provided by Google.
Firebase terms of service: https://firebase.google.com/terms
Google Cloud terms of service: https://cloud.google.com/terms
Google privacy policy: https://policies.google.com/privacy

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums