NextJS GraphQL Hooks v1.0.0
Changes in v1.0.0
Added
- Initial release of NextJS GraphQL Hooks plugin
- WordPress 6.5+ Plugin Dependencies: Automatic WPGraphQL dependency management using WordPress native plugin dependencies feature
- Default Page fields for Elementor integration:
elementorContentfield with optional CSS inline parameterelementorCSSFilefield for CSS file URL
- Elementor Library Kit query (
elementorLibraryKit) with:- Kit ID retrieval
- CSS file URL for global styles
- Extensible filter system using
nextjs_graphql_hooks_register_typesaction hook - Auto-update system with GitHub releases integration
- Modern PHP 8.0+ codebase with:
- Namespace organization (
NextJSGraphQLHooks) - Singleton pattern implementation
- Typed properties with nullable types
- Return type declarations
- Modern array syntax and double-quoted strings
- Namespace organization (
- Comprehensive error handling:
- Graceful fallbacks when Elementor is not available
- Error logging for debugging purposes
- Empty string returns instead of exceptions
- Helper methods for extensibility:
register_custom_object_type()for custom GraphQL typesregister_custom_fields()for extending existing typesregister_root_query_field()for root query fields
- WordPress integration features:
- WPGraphQL automatic dependency management (WordPress 6.5+)
- Plugin activation/deactivation hooks
- Admin notices for missing dependencies (legacy WordPress support)
- Auto-update system with GitHub releases
- GitHub Actions workflows for:
- Automated quality checks with PHP 8.0+ and WordPress 6.5+ compatibility testing
- Package size monitoring
- Automated release creation
- Example implementation file showing how to extend the plugin
- Comprehensive documentation with:
- Installation instructions
- Usage examples
- Extension guidelines
- Development standards
Security
- Input sanitization for GraphQL arguments
- Proper error message handling to prevent sensitive information exposure
- WordPress capability integration ready for future enhancements
Requirements
- WordPress 6.5+ (for automatic plugin dependency management)
- PHP 8.0+ (modern syntax and features)
- WPGraphQL plugin (automatically managed as dependency in WP 6.5+)
Compatibility Notes
- For WordPress versions below 6.5, WPGraphQL must be installed manually
- Automatic plugin dependency management requires WordPress 6.5 or later
- All features fully supported on WordPress 6.5+ with automatic dependency resolution
Technical Details
- Requires WordPress 5.0+
- Requires PHP 8.0+
- Requires WPGraphQL plugin
- Optional Elementor integration
- GPL v2 or later license
- Text domain:
nextjs-graphql-hooks
📦 Package Information
- File: nextjs-graphql-hooks-v1.0.0.zip
- Size: ~24KB
- License: GPL v2 or later
🚀 Installation
- Download the ZIP file below
- Go to WordPress Admin → Plugins → Add New → Upload Plugin
- Choose the downloaded ZIP file and click "Install Now"
- Activate the plugin
For detailed installation instructions, see the README.md file.