register_nav_menus( array(
'top' => esc_html__( 'Top Menu', 'theme-slug' ),
'social' => esc_html__( 'Social Menu', 'theme-slug' ),
) );
🏄♂️
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
const webpack = require('webpack'); | |
require('dotenv').config({ | |
path: process.env.NODE_ENV === 'production' ? '.env.production' : '.env' | |
}); | |
module.exports = { | |
webpack: config => { | |
const env = Object.keys(process.env).reduce((acc, curr) => { | |
acc[`process.env.${curr}`] = JSON.stringify(process.env[curr]); |
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
// Modified version of this Stack Overflow response: | |
// https://stackoverflow.com/a/48459005/1950503 | |
// (Removes ramda dependency, adds .trim() to string replacer, adds it to Jest global var instead of exporting) | |
// To use: | |
// Put `<rootDir>/path/to/customWhitespaceMatcher.js` in your Jest config under setupFiles | |
// Call it in your tests like this: | |
// expect( | |
// customMatchers.whitespaceMatcher(receivedResult, expectedResult).pass | |
// ).toBeTruthy(); |
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
## _/_/_/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/_/ | |
## _/ _/ _/ _/ _/ _/_/ _/ _/ _/ | |
## _/ _/_/_/_/ _/_/_/_/ _/ _/ _/ _/ _/_/_/ | |
## _/ _/ _/ _/ _/ _/ _/_/ _/ _/ | |
## _/_/_/ _/ _/ _/ _/ _/ _/ _/_/_/ _/_/_/_/ | |
## | |
## _/_/_/_/_/ _/ _/ _/_/_/_/ | |
## _/ _/ _/ _/ | |
## _/ _/_/_/_/ _/_/_/ | |
## _/ _/ _/ _/ |