var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var reload = browserSync.reload;
var sass = require('gulp-sass')(require('sass'));
var maps = require('gulp-sourcemaps');
var postcss = require('gulp-postcss');
var autoprefix = require('autoprefixer');
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
/* | |
* Add shortcode support for template parts | |
* Example: [template_part path="template-part-leadership"] | |
*/ | |
function template_part( $atts, $content = null ){ | |
$tp_atts = shortcode_atts(array( | |
'path' => null, | |
), $atts); | |
ob_start(); |
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 | |
/* | |
Plugin Name: WI Verbs Nested Post Types | |
Plugin URI: https://wisconsinverbs.com | |
Description: Display Custom Post Types in a nested menu | |
Version: 1.0 | |
Author: Andrea Roenning | |
Author URI: https://andrearoenning.com | |
License: GPL2 | |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
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
/** | |
* Adds Webpack entry points for customizations to core blocks | |
* in addition to wp-scripts deafault configs that are used for custom blocks | |
*/ | |
/** | |
* External dependencies | |
*/ | |
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' ); |