This file contains hidden or 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
var url = ""; | |
var params = { | |
name: 'John', | |
email: '[email protected]' | |
}; | |
var xhr = new XMLHttpRequest(); | |
xhr.open('POST', url + '?' + buildQueryString(params)); |
This file contains hidden or 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 strict'; | |
const autoprefixer = require('autoprefixer'); | |
const browsers = require('@wordpress/browserslist-config'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const path = require('path'); | |
const webpack = require('webpack'); | |
module.exports = function (env, options) { |
This file contains hidden or 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
{"lastUpload":"2020-07-18T18:11:37.497Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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: | |
* Plugin URI: | |
* Description: | |
* Version: 1.0 | |
* Author: | |
* Author URI: | |
* License: GPL2 |
This file contains hidden or 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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
# add a trailing slash to /wp-admin | |
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} -f [OR] |
This file contains hidden or 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 | |
/** | |
* Find a single item in a list based on specific criteria. | |
* | |
* @uses wp_list_filter() | |
* | |
* @param array $list | |
* @param array $args | |
* @param string $operator |
This file contains hidden or 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
/** | |
* Get the client IP address. | |
* | |
* @return string | |
*/ | |
function mm_get_client_ip() { | |
// Default to REMOTE_ADDR | |
$ip = $_SERVER['REMOTE_ADDR']; |
This file contains hidden or 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: Schema API | |
* Plugin URI: | |
* Description: | |
* Version: 0.1.0 | |
* Author: Micah Wood | |
* Author URI: https://wpscholar.com | |
* License: GPL2 |
This file contains hidden or 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
function() { | |
// Custom webpack plugin - remove generated JS files that aren't needed | |
this.hooks.done.tap( 'webpack', function( stats ) { | |
stats.compilation.chunks.forEach( chunk => { | |
if (!chunk.entryModule._identifier.includes( '.js' )) { | |
chunk.files.forEach( file => { | |
if (file.includes( '.js' )) { | |
fs.unlinkSync( path.join( __dirname, `/${file}` ) ); | |
} | |
} ); |