PHP code example of bradp / wordpress-pattern-category-phpcs
1. Go to this page and download the library: Download bradp/wordpress-pattern-category-phpcs 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/ */
bradp / wordpress-pattern-category-phpcs example snippets
/**
* Title: Hero Banner
* Slug: my-theme/hero-banner
* Categories: my-theme, banner
*/
xml
<rule ref="PatternCategory.Patterns.PatternCategory">
<properties>
<property name="base_category" value="your-category" />
</properties>
</rule>