This is a plugin description
- repository: ``
- figma: ``
- PHP > 8.1
- composer v2
- node v21 or higher
- npm v10 or higher
- Upload the plugin files to
/wp-content/plugins
folder, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress
npm run dev
: watches and compiles files on changenpm run build
: creates production ready versions of css and js insidestatic
folder
- write clean and OOP code
- every class, functions or any logic should exists only in
app
folder
- WordPress coding standards github and docs should be applied
- exception of naming classes because of autoloader, classes should be named with CamelCase
- No shorthand PHP Tags => use
<?php ... ?>
- Single and Double Quotes => If you’re not evaluating anything in the string, use single quotes
- Methods and Functions should be named with snake_case, Example:
get_posts(), get_data()
- Brace Style => Braces should always be used in all code blocks, Example:
if($some_condition) { // Do something}
- When declaring a function or a class braces are added at the end of the line, not in the new line
- Declaring Arrays => Arrays must be declared using long array syntax, Example:
array(1,2,3);
- Using import use statements => Import
use
statements should be at the top of the file and follow thenamespaces
declaration