[updated 7/4/25 with latest improvements. Still bugged ]
Dear HivePress Team and Community,
I’m reaching out after spending several months attempting to develop a custom integration between HivePress’s Paid Listings extension and WooCommerce Subscriptions.
Background
I conceptualized a website whose entire business model depends on this integration. Unfortunately, despite extensive research, I discovered that this functionality doesn’t exist natively - a significant roadblock for my project.
My Efforts So Far
Without professional development experience or the financial means to hire a developer, I’ve spent over a month:
- Researching HivePress’s architecture and extension patterns
- Investing in the HivePress extensions bundle and WooCommerce Subscriptions
- Creating and testing over 500 iterations of a custom plugin with the help of AI
Current Status
I’ve made surprising progress for a non-developer, with roughly 99% of the intended functionality working at various points. However, achieving a stable, bug-free version has proven challenging, as each fix often introduces new issues.
I’ve noticed posts from HivePress staff dating back to 2022 mentioning an official integration in development, but as we’re now in 2025 with no release, I’ve continued my efforts.
Community Request
I’m sharing my work in hopes that more experienced developers might help refine it into a fully functional solution. My latest version (streamlined to about 8 files) accomplishes most of the intended functionality.
GitHub Repository: https://github.com/Chris-B92/forhivepress
Download ZIP: https://github.com/Chris-B92/forhivepress/archive/refs/tags/bugged.zip
I’ve attached links to see what I’ve managed to put together, but I honestly can’t put into words how much this plugin means to me. Perhaps together we can create something that benefits the entire HivePress community.
Thank you for your consideration,
Chris
Here’s a detailed breakdown of what it aims to do:
Subscription Renewals for HivePress: Detailed Description
This WordPress plugin provides seamless integration between WooCommerce Subscriptions and HivePress, automating the management of listings based on users’ subscription status. It solves the critical business problem of maintaining listing visibility and status in sync with subscription payments.
Core Purpose
The plugin bridges the gap between subscription payments and content visibility by automatically managing HivePress listings based on a user’s WooCommerce subscription status. When a subscription is active, listings remain visible; when a subscription expires or is cancelled, listings are automatically drafted to prevent unpaid content from displaying.
Key Features and Functionality
Subscription Status Management
- Active Subscription Handling:
- Automatically updates all listing expiry dates to match the subscription’s next payment date
- Maintains user’s listing front-end visibility choices (published listings stay published)
- Respects pending cancellation status as still active until the billing period ends
- Restores front-end visibility controls when a subscription becomes active
- Links subscription orders to specific HivePress packages
- Cancelled/Expired Subscription Handling:
- Automatically drafts all user’s published listings when a subscription is cancelled or expired
- Hides front-end visibility controls to prevent users from re-publishing without an active subscription
- Deletes and removes assigned packages when a subscription is cancelled or expired
- Tags listings with a special meta flag (_hpsr_subscription_drafted) to identify listings drafted due to subscription status
- Renewal and Resubscription Handling:
- Restores front-end visibility controls when a user resubscribes
- Automatically republishes listings that were drafted due to subscription status
- Optionally resets the package submission limit on renewal
- Handles multi-subscription scenarios where a user may have multiple active subscriptions
WooCommerce Integration
- Order Processing:
- Force-completes orders for WooCommerce virtual items and subscriptions
- Detects and processes “stuck” orders that should be completed
- Tracks subscription renewal payments and processes appropriate listing updates
Administrative Tools
- User Management:
- Advanced user lookup tool to search by ID, email, or username
- Detailed user information display showing subscriptions, packages, and listings
- Manual subscription synchronization for individual users
- Debug tools for troubleshooting listing expiry dates
- System Tools:
- Manual sync functionality for all users’ subscription data
- Process stuck orders functionality
- Cron job health checks and rescheduling
- Detailed logging system with save, copy, and clear functionality
- Reporting and Statistics:
- Dashboard widget with subscription and listing overview
- Detailed reports showing subscription status counts
- Package assignment statistics
- Listing status breakdown
Configuration Options
- Admin Settings:
- Admin bypass option allowing administrators to publish listings without requiring a subscription
- Debug mode toggle for detailed logging
- Option to hide WordPress toolbar for non-admins
- Option to reset submission limits on subscription renewal
Technical Implementation
- Integration Points:
- Hooks into WooCommerce Subscription status changes (active, on-hold, cancelled, expired, pending-cancel)
- Monitors renewal payments and initial subscription creation
- Validates listing submissions against subscription status
- Uses WordPress cron for scheduled synchronization
- Data Management:
- Extends HivePress models (Listing, User_Listing_Package)
- Maintains metadata relationships between subscriptions, packages, and listings
- Caches statistics for performance optimization
- Implements proper database interaction following WordPress standards
- User Interface Enhancements:
- Adds CSS to conditionally hide visibility controls based on subscription status
- Provides color-coded status indicators in the admin interface
- Creates a responsive admin dashboard with tabbed navigation
- Offers user-friendly tools for subscription management
- Error Handling and Logging:
- Comprehensive logging system with different severity levels
- Log rotation to prevent excessive file sizes
- Secure log storage with .htaccess protection
- Debug tools for troubleshooting specific user scenarios
Unique Value Proposition
This plugin solves several critical problems for HivePress website owners:
- Automation: Eliminates manual management of listing status when subscriptions change
- Revenue Protection: Ensures users must maintain an active subscription to keep listings visible
- User Experience: Automatically restores listings when payments resume
- Administrative Efficiency: Provides comprehensive tools for managing and troubleshooting subscriptions
- Flexibility: Offers configuration options to adapt to different business models
The plugin is particularly valuable for membership sites, directories, classifieds, or marketplace websites that use HivePress and want to monetize through recurring subscription payments rather than one-time listing fees.
Technical Requirements
- WordPress 5.0 or higher
- PHP 7.0 or higher
- HivePress core plugin
- WooCommerce plugin
- WooCommerce Subscriptions plugin
- HivePress Paid Listings extension