Skip to content

Enhanced Route Parameters

Choose a tag to compare

@codestify codestify released this 30 Apr 23:26
· 8 commits to main since this release
f6d8e9d

This release improves how Laravel-style route parameters are translated to WordPress REST API format, addressing issues with parameter handling for complex routes.

Key Improvements:

  • Fixed parameter handling in routes with camelCase format (e.g., {postId} → post_id)
  • Resolved empty args array issue in route registration for parameter-containing routes
  • Enhanced parameter type detection for REST API documentation
  • Improved compatibility between Laravel-style route patterns and WordPress REST schema
  • Maintained backward compatibility with existing route structure and tests

These fixes ensure proper REST API documentation generation and consistent parameter access in controllers regardless of parameter naming convention. Routes with complex parameter structures now correctly generate argument schemas for WordPress REST API.