WordPress Coding Standards for PHP_CodeSniffer: Frequently Asked Questions

Have any question about the WordPress Coding Standards for PHP_CodeSniffer? We’ve answered the most common questions in the simplest way.

How can I find out which sniff has flagged an error?

To find out the sniff that has flagged an error, use the -s flag. It will show the sniff codes in the report.

What does the “Inline control structures are not allowed” error mean?

When writing conditionals, you should always use braces ({}). See Brace Style.

Level Up Your WordPress Business With One Email Per Week

Every Sunday, I send out tips, strategies, and case studies designed to help agencies and freelancers succeed with modern WordPress.

My goal is to go off the beaten path, and focus on sharing lessons learned from what I know best: building websites for clients.

100% free and 100% useful.

Feel free to check out the latest editions.