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! :)
| # https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh | |
| source ~/git-prompt.sh | |
| # https://github.com/git/git/blob/master/contrib/completion/git-completion.bash | |
| source ~/bash_completion.d/git-completion.bash | |
| # https://github.com/bobthecow/git-flow-completion | |
| source ~/bash_completion.d/git-flow-completion.bash | |
| alias ll='ls -lah' |
| // Pass the plugin reference and configuration parameter ('text') to the embed script | |
| jwplayer('id-of-container').setup({ | |
| file: '/path/to/my/video.mp4', | |
| plugins: { | |
| '/path/to/overlay.js': { | |
| text: 'Text that you want to go within the overlayed banner' | |
| } | |
| } | |
| }); |
| <?php | |
| add_action( 'wp_enqueue_scripts', function() { | |
| wp_register_style( 'parent-theme', get_template_directory_uri() . '/style.css' ); | |
| wp_enqueue_style( 'child-theme', get_stylesheet_uri(), array( 'parent-theme' ) ); | |
| } ); |
| <?php | |
| /** | |
| * Open Graph Tags | |
| * | |
| * Add Open Graph tags so that Facebook (and any other service that supports them) | |
| * can crawl the site better and we provide a better sharing experience. | |
| * | |
| * @link http://ogp.me/ | |
| * @link http://developers.facebook.com/docs/opengraph/ | |
| */ |
| <?php | |
| /* | |
| Plugin Name: Gallery Rewrite (for wpse27638) | |
| Plugin URI: http://pmg.co | |
| Description: Builds cutom rewrites to display a gallery or not. | |
| Version: 1 | |
| Author: Christopher Davis | |
| Author URI: http://pmg.co/people/chris | |
| License: creative commons/GPL2 | |
| */ |
| *.pbxproj -crlf -diff -merge |