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! :)
// a gulp task to clean up vendor folder files for production machine. | |
var gulp = require('gulp'); | |
var zip = require('gulp-zip'); | |
gulp.task('zip-vendor', function () { | |
return gulp.src( | |
[ | |
'vendor/**/*', |
/** | |
* plugin.js | |
* | |
* Copyright, Moxiecode Systems AB | |
* Released under LGPL License. | |
* | |
* License: http://www.tinymce.com/license | |
* Contributing: http://www.tinymce.com/contributing | |
*/ |
<?php | |
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' ); | |
/** | |
* Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE. | |
* IE10 and up does not support conditional comments in standards mode. | |
* | |
* @uses wp_style_add_data() WordPress function to add the conditional data. | |
* @link https://developer.wordpress.org/reference/functions/wp_style_add_data/ |