Last active
March 20, 2020 21:48
-
-
Save dalenguyen/3b3700ef9349dbc91590c3cf13859bdc to your computer and use it in GitHub Desktop.
(Integrate Firebase PRO): Add custom Firebase JavaScript to WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// functions.php | |
// Custom JavaScript for Firebase | |
function custom_firebase_scripts_function() | |
{ | |
wp_enqueue_script('custom_firebase', get_template_directory_uri() . '/js/custom-firebase.js', array('firebase_app', 'firebase_auth', 'firebase_database', 'firebase_firestore', 'firebase')); | |
} | |
add_action('wp_enqueue_scripts', 'custom_firebase_scripts_function'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @rsoares21, I guess it's a typo. But it doesn't really affect anything if you have the correct path to custom-firebase.js file.