Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Latest commit

 

History

History
35 lines (23 loc) · 585 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 585 Bytes

Elementor Sniffs

Collection of PHP_CodeSniffer sniffs for Elementor.

Installation

composer require elementor/elementor-sniffs

Usage

Command line

./vendor/bin/phpcs --standard=Elementor-Core <file>

Config file

PHPCS config file:

<?xml version="1.0"?>
<ruleset name="Elementor Coding Standards">
    <description>My projects ruleset.</description>
    
    <config name="text_domain" value="my-plugin-name" />
        
    <exclude-pattern>vendor/</exclude-pattern>

	<!-- Rules -->
    <rule ref="Elementor-Core" />
</ruleset>