PhpStorm now bundles WordPress coding style natively, starting from version 8.
- Go to
Project Settings
>Code Style
>PHP
. - Select
Set From...
(top right of window) >Predefined Style
>WordPress
.
No longer need to muck with this import! :)
class cfd_user { | |
protected $profile_fields = array( | |
'user_login' => null, | |
'user_nicename' => null, | |
'user_url' => null, | |
'user_email' => null, | |
'display_name' => null, | |
'nickname' => null, | |
'first_name' => null, | |
'last_name' => null, |
#!/bin/bash | |
# (not really -- run these commands by hand & pay attention to the comments) | |
# Homebrew: The missing package manager for OS X | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
# Fish: Finally, a command line shell for the 90s | |
brew install fish | |
# Git |
<?php | |
foreach ( debug_backtrace() as $key => $value ) { | |
$function = @$value['function']; | |
if( isset( $value['class'] ) ) | |
$function = $value['class'] . '::' . $function; | |
//error_log( "** " . $key . ". " . $function . "( " . str_replace( array("\n","\t",' ','(',')'), '', print_r( $value['args'], true ) ) . " )" ); |
extensions: | |
- chassis/tester | |
- chassis/mailhog | |
- chassis/xdebug | |
- chassis/nodejs | |
- chassis/fish | |
- chassis/gulp | |
- chassis/grunt | |
- chassis/imagick | |
- chassis/gmagick |
<!doctype html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Foundation Mega Menu</title> | |
<link rel="stylesheet" href="css/app.css" /> | |
<link href="http://cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.css" rel="stylesheet"> | |
<script src="bower_components/modernizr/modernizr.js"></script> | |
</head> |
@import compass | |
$icons: sprite-map("icons/*.png") | |
$icons-hd: sprite-map("icons-hd/*.png") | |
i | |
background: $icons | |
display: inline-block | |
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) | |
background: $icons-hd |
<IfModule mod_expires.c> | |
ExpiresActive on | |
# Perhaps better to whitelist expires rules? Perhaps. | |
ExpiresDefault "access plus 1 month" | |
# Data | |
ExpiresByType text/xml "access plus 0 seconds" | |
ExpiresByType application/xml "access plus 0 seconds" | |
ExpiresByType application/json "access plus 0 seconds" |
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name