considbrs-webdev/pitea-customisation 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

considbrs-webdev/pitea-customisation

Composer 安装命令:

composer require considbrs-webdev/pitea-customisation

包简介

Custom functionality and modifications for the Pitea WordPress installation

README 文档

README

A WordPress plugin for custom functionality and modifications for the Pitea WordPress installation.

Features

  • Modular PHP architecture with Composer autoloading
  • Vite for modern CSS and JavaScript building
  • SCSS support with variables and mixins
  • Separate frontend and admin asset bundles

Requirements

  • PHP 8.0+
  • Node.js 18+
  • Composer

Installation

  1. Navigate to the plugin directory:

    cd wp-content/plugins/pitea-customisation
  2. Install PHP dependencies:

    composer install
  3. Install Node.js dependencies:

    npm install
  4. Build assets:

    npm run build
  5. Activate the plugin in WordPress admin.

Development

Watch for changes

npm run dev

Or for production watch:

npm run watch

Build for production

npm run build

Adding Custom Classes

  1. Create a new PHP class in source/php/Customisations/:

    <?php
    
    namespace PiteaCustomisation\Customisations;
    
    class MyCustomClass
    {
        public function __construct()
        {
            // Your hooks and initialization here
        }
    }
  2. Register the class in source/php/App.php:

    private function registerInstances(): void
    {
        $classes = [
            Customisations\IconReplacer::class,
            Customisations\MyCustomClass::class, // Add your class here
        ];
        // ...
    }
  3. Run composer dump-autoload to update the autoloader.

Directory Structure

pitea-customisation/
├── dist/                    # Built assets (generated)
├── source/
│   ├── js/
│   │   ├── main.js          # Frontend JavaScript entry
│   │   └── admin.js         # Admin JavaScript entry
│   ├── php/
│   │   ├── App.php          # Main plugin class
│   │   └── Customisations/  # Custom functionality classes
│   │       └── IconReplacer.php
│   └── sass/
│       ├── style.scss       # Frontend styles entry
│       ├── admin.scss       # Admin styles entry
│       └── abstracts/       # Variables, mixins, etc.
├── composer.json
├── package.json
├── vite.config.js
└── pitea-customisation.php  # Main plugin file

License

MIT

统计信息

  • 总下载量: 57
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固