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
(function ($, _) { | |
var media = wp.media; | |
var sizes = [ | |
'100%' | |
]; | |
media.events.on('editor:image-edit', function (data) { | |
var origImageDetails = media.view.ImageDetails; | |
media.view.ImageDetails = origImageDetails.extend({ |
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: WPS Custom Block Patterns | |
Description: Adds a custom block pattern to the Gutenberg block editor. | |
Version: 1.0 | |
Author: Chris Romero | |
Author URI: https://cromero.io | |
*/ |
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
module.exports = { | |
module: { | |
rules: [ | |
{ | |
test: /.(otf|eot|ttf|woff|woff2|svg)(\?\S*)?$/, | |
loader: "file-loader", | |
options: { | |
publicPath: "../../", | |
name: "./[path][name].[ext]", | |
emitFile: false |