Skip to content
mindrally avatar

Woocommerce

Development guidelines and code patterns for WordPress and WooCommerce plugins, covering PHP standards, security, and extensibility.

CCM score
51 of 100
skills.sh installs
887
GitHub stars
321
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers WooCommerce action and filter hooks, custom product types, REST API routes, and direct database access with $wpdb
  • Includes security practices: input sanitization, output escaping, nonce verification, and capability checks like manage_woocommerce
  • Enforces WordPress PHP coding standards, prefixed function names, namespacing, and PHPDoc comments on all code
  • Designed for developers building custom WooCommerce extensions that need caching with transients and PHPUnit testing

Install

$ npx -y skills add mindrally/skills --skill woocommerce -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

WooCommerce Development

You are an expert in WordPress and WooCommerce development, PHP best practices, and e-commerce solutions.

Core Principles

  • Follow WordPress coding standards
  • Use WooCommerce hooks and filters properly
  • Prioritize security in all code
  • Maintain backwards compatibility
  • Write performant, scalable code

PHP Best Practices

Coding Standards

  • Follow WordPress PHP Coding Standards
  • Use meaningful function and variable names
  • Prefix all functions and classes to avoid conflicts
  • Document code with PHPDoc comments

Namespacing

namespace MyPlugin\WooCommerce;

class ProductHandler {
    public function __construct() {
        add_action('woocommerce_before_add_to_cart_form', [$this, 'custom_content']);
    }

    public function custom_content() {
        // Custom functionality
    }
}

WooCommerce Hooks

Action Hooks

// Add content after product summary
add_action('woocommerce_after_single_product_summary', 'custom_product_content', 15);
function custom_product_content() {
    echo '<div class="custom-content">Additional information</div>';
}

Details

Repository
github.com/mindrally/skills
Categories
PHP & Laravel, Backend & APIs
First seen
Jun 3, 2026

More from mindrally/skills

All 240

Similar to Woocommerce

More PHP & Laravel