开发者 | hanthuy |
---|---|
更新时间 | 2024年12月5日 06:22 |
捐献地址: | 去捐款 |
PHP版本: | 5.2.4 及以上 |
WordPress版本: | 6.7.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/integrate-firebase
directory to the /wp-content/plugins/
directory.At version 0.6.1, the user can integrate Firebase authentication to WordPress. That means you can:
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"]");= How can I log out? This is a shortcode for log out button.
echo do_shortcode("[firebase_logout]");