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 browserSync = require("browser-sync"); | |
browserSync({ | |
proxy: 'localhost:9292', | |
files: [ | |
"./css/**/*", | |
"./js/**/*", | |
"./images/**/*", | |
"./fonts/**/*", | |
"./**/*.php", | |
] |
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
#!/usr/bin/env bash | |
# =============================================================================== | |
# Script to install PHPUnit in the Local by Flywheel Mac app | |
# These packages are installed | |
# | |
# PHPUnit, curl wget, rsync, git, subversion and composer. | |
# | |
# WordPress is installed in the `/tmp/wordpress` directory for use by PHPUnit. | |
# The WordPress test suite is installed in the `/tmp/wordpress-tests-lib` directory. |
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
add_filter('bogo_localizable_post_types', 'my_localizable_post_types', 10, 1); | |
function my_localizable_post_types($localizable) { | |
$localizable[] = 'custom_post_type_name'; | |
return $localizable; | |
} |
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 | |
function additional_image_size_names_choose($sizes){ | |
global $_wp_additional_image_sizes; | |
if ( $_wp_additional_image_sizes ) { | |
foreach ( $_wp_additional_image_sizes as $key => $value ) { | |
if ( !$sizes[$key] ) | |
$sizes[$key] = $key; | |
} | |
} |