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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
babel src/app.js --out-file=public/scripts/app.js --presets=env,react --watch |
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
<?php | |
// ============================================================================= | |
// AUTH0 CONFIG | |
// ============================================================================= | |
function auth0_docs_hook_auth0_user_login( $user_id, $userinfo, $is_new, $id_token, $access_token, $refresh_token ) { | |
// Save role from $userinfo object | |
$wpRole = $userinfo['app_metadata']['wordpress_role']; | |
// $wpRole = $userinfo => app_metadata => wordpress_role; |
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
<!-- TOAST ERRORS --> | |
<script src="jquery.toast.min.js"></script> | |
<link href="jquery.toast.min.css" rel="stylesheet" /> | |
<style> | |
.jq-toast-single { | |
font-size: 16px; | |
} | |
.jq-toast-single h2 { | |
font-size: 18px; | |
} |