View .lando.yml
name: mysite2 | |
recipe: wordpress | |
config: | |
php: '7.2' | |
via: nginx | |
webroot: public | |
xdebug: true | |
conf: | |
php: .vscode/php.ini | |
proxy: |
View .lando.yml
name: mysite | |
recipe: wordpress | |
config: | |
php: '7.2' | |
webroot: public | |
xdebug: true | |
conf: | |
php: .vscode/php.ini | |
proxy: | |
mailhog: |
View gulpfile.js
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
prefix = require('gulp-autoprefixer'), | |
sourcemaps = require('gulp-sourcemaps'), | |
livereload = require('gulp-livereload'), | |
input = { | |
'sass': [ | |
'sass/**/*.scss' | |
] |
View wp-stylesheet-loader.php
add_action( 'wp_enqueue_scripts', 'abc_styles' ); | |
function abc_styles() { | |
wp_enqueue_style( | |
'abc', | |
get_stylesheet_uri(), | |
array(), | |
filemtime( get_template_directory() . '/style.css' ) | |
); |
View wp-remove-emoji.php
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); |
View wp-disable-rest.php
add_filter( 'rest_enabled', '_return_false' ); | |
add_filter( 'rest_jsonp_enabled', '_return_false' ); |
View hyphenate.css
.hyphenate { | |
overflow-wrap: break-word; | |
word-wrap: break-word; | |
-webkit-hyphens: auto; | |
-ms-hyphens: auto; | |
-moz-hyphens: auto; | |
hyphens: auto; | |
} |
View gist:545c54e2876ebcbaf3c0
add_filter( 'post_password_expires', 'my_cookie_time' ); | |
function my_cookie_time( $time ) { | |
return 600; // 600 = 10 minutes. Use 0 to expire the cookie at the end of the current browsing session. | |
} |
View gist:5a68f561fd2381e64efe
register_extended_post_type( | |
'newsletter', | |
array( | |
'capability_type' => 'post', | |
'hierarchical' => false, | |
'menu_position' => 45, | |
'quick_edit' => false, | |
'supports' => array( 'title', 'editor', 'thumbnail' ), | |
'admin_cols' => array( | |
'newsletter-image' => array( |
View gist:2942fa7d71859c35f566
<?php | |
defined( 'ABSPATH' ) or die(); | |
$ll_sitemap = new ll_sitemap; |