Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.38 KB

File metadata and controls

55 lines (40 loc) · 1.38 KB

Customizer Search

Project Overview

Customizer Search is a WordPress plugin by Brainstorm Force. Search for settings in the WordPress customizer.

  • Version: 1.2.1
  • Text Domain: customizer-search
  • Main File: customizer-search.php
  • Requires: WordPress, PHP 5.6+

Tech Stack

  • Language: PHP
  • Platform: WordPress
  • Build: Grunt (i18n, readme conversion)
  • Coding Standards: PHPCS with WordPress standards

Commands

# Install dependencies
npm install
composer install

# Build (i18n + readme)
npx grunt

# Generate translations
npx grunt i18n

# Convert readme.txt to README.md
npx grunt readme

# Run PHPCS
./vendor/bin/phpcs .

Architecture

This is a WordPress plugin following standard WordPress patterns:

  • Entry point: customizer-search.php
  • Constants defined for version, file path, base, dir, and URI
  • Classes loaded via after_setup_theme or plugins_loaded hook
  • Follows WordPress Coding Standards (WPCS)

Conventions

  • Use WordPress hooks (add_action, add_filter) for extensibility
  • Prefix all functions and classes to avoid conflicts
  • Use customizer-search text domain for all translatable strings
  • Escape all output (esc_html, esc_attr, esc_url, wp_kses)
  • Sanitize all input (sanitize_text_field, absint, etc.)
  • Use nonces for form submissions and AJAX requests
  • Follow WordPress PHP coding standards