PHP code example of thetwopct / wporg-submission-rules
1. Go to this page and download the library: Download thetwopct/wporg-submission-rules library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thetwopct / wporg-submission-rules example snippets
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
phpcs --standard=WPOrgSubmissionRules your-file.php
<rule ref="WPOrgSubmissionRules.PluginHeader.RequiresPlugins">
<properties>
<property name="checkDirectory" value="false" />
</properties>
</rule>