generate_php_function
Create WordPress PHP functions that follow coding standards, including parameters, return types, and hook registration for actions and filters.
Instructions
Generate WordPress PHP function following coding standards
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function name | |
| description | No | Function description | |
| parameters | No | Function parameters | |
| returnType | No | Return type | |
| body | Yes | Function body code | |
| hooks | No | Hooks to register |