Contributors: dalenguyen
Buy me a coffee: https://www.paypal.me/DaleNguyen
Tags: firebase, wordpress
Requires at least: 4.0.0
Tested up to: 6.5.2
Stable tag: 0.9.3
Requires PHP: 5.2.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Integrate Firebase is a plugin that helps to integrate Firebase features to WordPress
If you want a secured implementation, with much more features, check the Interate Firebase PRO version.
The Integrate Firebase Plugin will help a Firebase user to login to your WordPress interface - not to WordPress dashboard - from Firebase authentication. You can show user info display data that is only available to your Firebase users.
You also can view Real Time Database and Firestore from your Dashboard in Version 0.5.3
If installing the plugin from wordpress.org:
- Upload the entire
/integrate-firebase
directory to the/wp-content/plugins/
directory. - Activate Integrate Firebase Plugin through the 'Plugins' menu in WordPress.
- Profit.
At version 0.3.2, a user can integrate Firebase authentication to WordPress. That means you can:
- log in, log out and show data only to logged in users.
- Get Real Time database in Dashboard
The example in this guide only shows you how to put in a PHP file. If you want to put the shortcode inside a widget or editor. You can simply do this:
[firebase_login][/firebase_login]
After adding Firebase credentials from Settings > Firebase. You can add login form through shortcodes:
echo do_shortcode("[firebase_login]");
If you want to create your own form. Please start with
. For submit button, you have to add 'firebase-form-submit' as an ID.You can add a shortcode to show user's info
echo do_shortcode("[firebase_greetings]");
You can show error message when a user cannot login by using a shortcode
echo do_shortcode("[firebase_login_error class='your-optional-CSS-class-name'][/firebase_login_error]");
You can put your data as an HTML code inside a shortcode
echo do_shortcode("[firebase_show_not_login class='your-optional-CSS-class-name']YOUR HTML CODE[/firebase_show_not_login]");
You can put your data as an HTML code inside a shortcode
echo do_shortcode("[firebase_show class='your-optional-CSS-class-name']YOUR HTML CODE[/firebase_show]");
You can put your data as an HTML code inside a shortcode. Realtime data will be shown as a table with an id #if-realtime.
echo do_shortcode("[realtime class='your-optional-CSS-class-name' collection_name='string' document_name='string']");
This is a shortcode for log out button.
echo do_shortcode("[firebase_logout]");
- After activating the plugin, you need enter Firebase credentials under Setting > Firebase.
- Please enter collection names in order to show the data from Real Time Database
- Please edit the read rules in order to view data from Firestore
Please use github issues when submitting your logs. Please do not post to the forums.