Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 538 Bytes

extensibility.md

File metadata and controls

22 lines (18 loc) · 538 Bytes

Package Extensibility

This package provides many ways for developers to customise the behaviour.

Ruleset overriding and adding custom rules

You can override or add custom rules to the config as follows.

<?xml version="1.0"?>
<ruleset name="NewsUK WP PHPCS Rules">
	<rule ref="NewsUK"/>
	<!-- Overriding the existing text_domain -->
	<rule ref="WordPress.WP.I18n">
		<properties>
			<property name="text_domain" type="array">
				<element value="your_plugin_domain"/>
			</property>
		</properties>
	</rule>
</ruleset>