considbrs-webdev / pitea-customisation
Custom functionality and modifications for the Pitea WordPress installation
Package info
github.com/Considbrs-Webdev/pitea-customisation
Type:wordpress-plugin
pkg:composer/considbrs-webdev/pitea-customisation
dev-main
2026-01-27 14:41 UTC
Requires
- php: >=8.0
- dev-main
- dev-dev
- dev-pireva-disruptions/fix
- dev-feat/more-post-templates
- dev-import/pireva
- dev-fix/pagination
- dev-feat/color-picker
- dev-feat/modularity-term-archive-support
- dev-feat/share-button
- dev-feat/mobile-pagination
- dev-feat/container-customisation
- dev-feat/css-for-cards
- dev-feature/slider-customisation
- dev-feature/textmodule-customisation
This package is auto-updated.
Last update: 2026-03-26 18:50:31 UTC
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
-
Navigate to the plugin directory:
cd wp-content/plugins/pitea-customisation -
Install PHP dependencies:
composer install
-
Install Node.js dependencies:
npm install
-
Build assets:
npm run build
-
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
-
Create a new PHP class in
source/php/Customisations/:<?php namespace PiteaCustomisation\Customisations; class MyCustomClass { public function __construct() { // Your hooks and initialization here } }
-
Register the class in
source/php/App.php:private function registerInstances(): void { $classes = [ Customisations\IconReplacer::class, Customisations\MyCustomClass::class, // Add your class here ]; // ... }
-
Run
composer dump-autoloadto 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