MP Creator Notifier Pro
Gestion complète des créateurs avec synchronisation bidirectionnelle WordPress ↔ Laravel
by Baana Baana Boutique · github.com/smartdev1/creator-notifier
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/smartdev1/creator-notifier/archive/refs/heads/main.zipNotify creators when their products are sold in WooCommerce. Includes REST API, Laravel CRM integration, and comprehensive statistics.
Description
MP Creator Notifier Pro is a powerful WordPress plugin that automatically notifies content creators when their products are sold through your WooCommerce store. Perfect for marketplaces with multiple creators, brand partnerships, or collaborative e-commerce platforms.
Key Features
- Automatic Email Notifications - Creators receive instant email alerts when their products are sold
- Brand-Based Assignment - Associate creators with specific brands or product categories
- Comprehensive REST API - Full-featured API (v2) for external integrations
- Laravel CRM Integration - Built-in webhook support for Laravel applications
- Real-Time Statistics - Track sales, orders, and performance per creator or brand
- Secure Authentication - Token-based API authentication with hash verification
- Customizable Email Templates - Personalize notification emails with dynamic variables
- Order Status Triggers - Configure which order statuses trigger notifications
- Multi-Creator Support - Manage unlimited creators with unique brand associations
- Developer-Friendly - Clean code, hooks, filters, and extensive documentation
Perfect For
- Multi-vendor marketplaces
- Creator economy platforms
- Brand partnership programs
- Dropshipping operations
- Affiliate marketing stores
- Print-on-demand services
- Digital product marketplaces
API Endpoints
The plugin provides a comprehensive REST API at /wp-json/mp/v2/:
Creators Management
GET /creators- List all creatorsGET /creators/{id}- Get single creatorPOST /creators- Create new creatorPUT /creators/{id}- Update creatorDELETE /creators/{id}- Delete creator
Orders & Products
GET /creators/{id}/orders- Get creator's ordersGET /creators/{id}/products- Get creator's productsGET /orders- List all ordersGET /orders/{id}- Get order detailsPOST /products/{id}/brand- Assign brand to productPOST /products/brands-bulk- Get brands for multiple productsPOST /products/creators- Get creators for multiple products
Statistics
GET /stats- Global statisticsGET /creators/{id}/stats- Creator-specific statsGET /brands/{slug}/stats- Brand-specific stats
System
GET /system/health- Check system healthGET /system/test- Test API connection
Laravel Integration
Seamlessly integrate with Laravel CRM systems:
- Configure webhook URL in plugin settings
- Generate secure webhook secret token
- Add token to Laravel
.envfile - Receive real-time creator and order events
Webhook events include:
creator.created- New creator addedcreator.updated- Creator information updatedorder.created- New order receivedorder.status_changed- Order status updated
Email Template Variables
Customize email notifications with these dynamic variables:
{creator_name}- Creator's name{order_id}- Order ID{order_date}- Order date and time{order_total}- Total amount for creator's products{products_list}- Formatted list of products sold
Developer Hooks & Filters
Actions:
mp_creator_created- Fires after creator is createdmp_notification_sent- Fires after notification is sentmp_webhook_sent- Fires after webhook is delivered
Filters:
mp_email_template- Modify email templatemp_notification_data- Filter notification datamp_api_rate_limit- Adjust API rate limit (default: 100/hour)mp_dev_tokens- Add development tokens
Requirements
- WordPress 5.8 or higher
- WooCommerce 5.0 or higher
- PHP 7.4 or higher
- MySQL 5.6 or higher
Installation
Automatic Installation
- Log in to your WordPress admin panel
- Navigate to Plugins → Add New
- Search for "MP Creator Notifier Pro"
- Click Install Now and then Activate
Manual Installation
- Download the plugin ZIP file
- Log in to WordPress admin panel
- Navigate to Plugins → Add New → Upload Plugin
- Choose the ZIP file and click Install Now
- Click Activate Plugin
Configuration
- Navigate to MP Creators in the WordPress admin menu
- Click Settings
- Generate your API token (save this securely!)
- Configure notification settings:
- Select order statuses that trigger notifications
- Customize email template
- (Optional) Configure Laravel webhook integration:
- Add your Laravel CRM webhook URL
- Generate webhook secret token
- Add token to your Laravel
.envfile
Creating Your First Creator
- Go to MP Creators in the admin menu
- Click Add New Creator
- Fill in the required information:
- Name
- Email address
- Brand slug (associates creator with products)
- Click Create Creator
Assigning Brands to Products
Method 1: Product Edit Page
- Edit a WooCommerce product
- Add custom field
brand_slugwith the creator's brand - Update product
Method 2: Via API
curl -X POST "https://yoursite.com/wp-json/mp/v2/products/123/brand" \
-H "X-MP-Token: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"brand_slug": "brand-name"}'
Method 3: Using Product Taxonomies
The plugin automatically detects product_brand taxonomy if configured in WooCommerce.
Frequently Asked Questions
How does the plugin know which creator to notify?
The plugin matches products to creators using the brand_slug field. When a product with brand X is sold, all creators associated with brand X receive notifications.
Can multiple creators share the same brand?
No, each brand can only be assigned to one creator. This ensures clear attribution and prevents duplicate notifications.
What order statuses trigger notifications?
By default, processing and completed statuses trigger notifications. You can customize this in Settings → Notification Settings.
Can I customize the email template?
Yes! Go to MP Creators → Settings and edit the email template using the provided variables.
Is the API secure?
Yes, the API uses SHA-256 hashed tokens for authentication and includes rate limiting (100 requests/hour by default). All tokens are stored as hashes, never in plain text.
How do I integrate with Laravel?
- Configure webhook URL in plugin settings
- Generate webhook secret token
- Add to Laravel
.env:WORDPRESS_WEBHOOK_SECRET=your_token - Create webhook endpoint in Laravel to receive events
Example Laravel webhook controller:
public function handle(Request $request)
{
$token = $request->header('X-MP-Webhook-Token');
if ($token !== config('services.wordpress.webhook_secret')) {
abort(401);
}
$event = $request->input('event');
$data = $request->input('creator');
// Process webhook data
Creator::create($data);
return response()->json(['success' => true]);
}
Can I test the API without a live site?
Yes! In development mode (WP_DEBUG = true), you can use the test token dev_token_123 for API requests.
What happens if email notification fails?
The plugin automatically retries failed notifications up to 3 times (with 5-minute intervals). Admin is notified after final failure.
Can I export creator statistics?
Statistics are available via the REST API. Use GET /stats or GET /creators/{id}/stats endpoints to retrieve data in JSON format.
Does it work with variable products?
Yes! The plugin fully supports WooCommerce variable products and correctly attributes sales to creators.
Can I use this with other e-commerce plugins?
Currently, the plugin is designed specifically for WooCommerce. Support for other platforms may be added in future versions.
How do I migrate creators from another system?
Use the REST API's POST /creators endpoint to bulk import creators from external systems.
Is there a limit on the number of creators?
No, you can add unlimited creators. The plugin is optimized for performance even with thousands of creators.
Screenshots
- Creator Management Dashboard - Overview of all creators with stats
- Creator Form - Easy-to-use form for adding new creators
- API Settings - Configure API tokens and webhooks
- Notification Settings - Customize email templates and triggers
- Statistics Dashboard - Comprehensive analytics per creator and brand
- API Documentation - Built-in API documentation with examples
- Notification Log - Track all sent notifications and their status
Changelog
5.3.0 - 2025-04-28
- Major Refactoring: Architecture modulaire complète (15 classes séparées)
- Added: Intégration PAPS Logistics (API, Settings, Checkout, Shipping)
- Added: Gestion des produits variables WooCommerce
- Improved: Réduction de 93% du fichier principal (4203 → 280 lignes)
- Improved: Ordre de chargement des modules documenté
- Improved: Rétrocompatibilité avec pattern Singleton
- Fixed: Synchronisation bidirectionnelle WordPress ↔ Laravel CRM
- Fixed: Webhooks avec authentification par token SHA-256
5.2.0 - 2025-03-15
- Added: API REST v2 avec endpoints complets
- Added: Dashboard créateur avec shortcode [mp_creator_dashboard]
- Added: Logs de notifications avec statut détaillé
- Improved: Performance avec cache transients (stats, creators)
- Fixed: Résolution de propriété pour produits variables
5.1.0 - 2025-02-20
- Added: Webhook Laravel CRM avec retry automatique
- Added: Support taxonomie product_brand
- Improved: Templates d'emails personnalisables
- Fixed: Calcul des statistiques pour commandes remboursées
5.0.0 - 2025-01-17
- Major Update: refonte complète de l'architecture
- Added: Gestion CRUD complète des créateurs
- Added: Notifications automatiques par email
- Added: API tokens sécurisés
- Changed: Structure de base de données optimisée
2.0.1 - 2024-12-15
- Fixed: Assignation de marque avec plusieurs taxonomies
- Fixed: Authentification webhook dans l'intégration Laravel
- Improved: Gestion des erreurs pour notifications email échouées
- Improved: Performance de la limitation de débit API
- Added: Support WooCommerce 8.5+
2.0.0 - 2024-11-01
- Major Update: Réécriture complète de l'API (v2)
- Added: Intégration webhook Laravel CRM
- Added: Opérations groupées pour produits et créateurs
- Added: Mise en cache avancée des statistiques
- Added: Mécanisme de retry pour notifications échouées
- Improved: Sécurité avec hachage de token SHA-256
- Improved: Optimisation performance pour grandes boutiques
- Changed: Version PHP minimale à 7.4
- Changed: Structure de base de données pour meilleure scalabilité
1.5.2 - 2024-10-01
- Fixed: Compatibilité avec WooCommerce 8.2
- Fixed: Échappement des variables de template email
- Improved: Responsive de l'interface admin
1.5.1 - 2024-08-15
- Added: Support de la taxonomie product_brand
- Fixed: Calcul des stats créateur pour commandes remboursées
- Improved: Optimisation des requêtes base de données
1.5.0 - 2024-06-20
- Added: REST API v1
- Added: Templates d'email personnalisés
- Added: Dashboard de statistiques créateur
- Fixed: Problème de plusieurs créateurs par marque
1.0.0 - 2024-03-10
- Version initiale
- Gestion basique des créateurs
- Notifications email
- Intégration WooCommerce
Upgrade Notice
5.3.0
Mise à jour majeure avec architecture modulaire et intégration PAPS Logistics. Sauvegardez votre base de données avant la mise à jour. Tous les modules sont maintenant chargés automatiquement.
5.2.0
Ajout de l'API REST v2 et du dashboard créateur. Améliorations de performance significatives.
5.1.0
Intégration des webhooks Laravel CRM avec retry automatique. Compatibilité product_brand améliorée.
5.0.0
Refonte complète de l'architecture. Nouvelle gestion des créateurs et notifications. Migration automatique des données.
2.0.1
Corrections de bugs et améliorations de compatibilité. Mise à jour recommandée pour tous les utilisateurs.
2.0.0
Mise à jour majeure avec changements cassants. Veuillez sauvegarder votre base de données et consulter le changelog avant la mise à jour. Régénération du token API requise.
1.5.0
Ajout du support de l'API REST. Les fonctionnalités existantes restent inchangées.
API Authentication
Token-Based Authentication (Recommended)
Add header to all API requests:
X-MP-Token: your_api_token_here
WooCommerce API Keys
Alternatively, use WooCommerce consumer keys:
Authorization: Basic base64(consumer_key:consumer_secret)
WordPress Authentication
Logged-in users with manage_woocommerce capability can access the API using WordPress nonces.
Support
For support, bug reports, or feature requests:
- Documentation: Visit the API Docs page in your WordPress admin
- GitHub: github.com/baanabaana/mp-creator-notifier
- Email: support@baanabaana.com
- Community: WordPress.org support forum
Privacy Policy
This plugin:
- Stores creator information (names, emails, addresses) in your WordPress database
- Sends emails to creators containing order information
- May send data to external Laravel CRM systems if webhook is configured
- Does NOT send any data to third-party services without explicit configuration
- Does NOT track or store customer data beyond WooCommerce defaults
Credits
Developed by BaanaBaana Boutique
Special thanks to:
- WooCommerce team for their excellent e-commerce platform
- WordPress community for continuous support
- All contributors and testers
License
This plugin is licensed under GPLv3 or later.
You should have received a copy of the GNU General Public License along with this plugin. If not, see https://www.gnu.org/licenses/gpl-3.0.html
Technical Details
Database Tables:
wp_mp_creators- Creator informationwp_mp_notifications- Notification logwp_mp_statistics- Cached statistics
API Rate Limiting:
- Default: 100 requests per hour per IP
- Configurable via
mp_api_rate_limitfilter
Caching:
- Statistics cached for 1 hour
- Creator lists cached for 10 minutes
- Custom cache group:
mp_creator_cache
Hooks & Actions:
woocommerce_new_order- Trigger notificationswoocommerce_order_status_changed- Status-based notificationsmp_retry_notification- Scheduled retry for failed emails
Contribute
We welcome contributions! Visit our GitHub repository to:
- Report bugs
- Suggest features
- Submit pull requests
- Improve documentation