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! :)
<?php | |
add_filter("the_content", "the_content_filter"); | |
function the_content_filter($content) { | |
// array of custom shortcodes requiring the fix | |
$block = join("|",array("col","shortcode2","shortcode3")); | |
// opening tag |
-- | |
-- @author Gregory Karpinsky, http://www.tiv.net/ | |
-- @version 14.05.28 | |
-- | |
SELECT | |
tp.name Cat, | |
t.name Subcat | |
FROM | |
wp_term_taxonomy tt, | |
wp_terms t, |
<?php | |
// .../node_modules/grunt-wp-i18n/vendor/wp-i18n-tools/extract.php | |
public function entry_from_call( $call, $file_name ) { | |
/** | |
* Ignore all strings that are not from our textdomain | |
*/ | |
if ( $call['args'][ count( $call['args'] ) - 1 ] !== 'my-text-domain' ) { | |
return null; | |
} |