This plugin will integrate with Sift Science's fraud detection suite and WooCommerce's decisions API.
This plugin has the following folder structure:
sift-decisions/
├── languages/
├── src/
│ ├ ...
│ └── inc/
└── sift-decisions.php
- languages: Contains the translation files for your plugin.
- src: A folder for organizing the plugin's main PHP classes or code components, such as integrations with other plugins or services. These classes should be organized into subfolders following the PSR-4 convention.
Composer
will handle the autoloading for these classes. - plugin-name.php: The main PHP file containing the plugin header and bootstraping functionality.
As you develop your plugin, update the README.md file with detailed information about your plugin's features, usage, installation, and any other pertinent information.
Use wp-env
to run a local development environment.
wp-env start