| 1 | | Replying to [comment:11 ericlewis]: |
| 2 | | > Replying to [comment:5 coffee2code]: |
| 3 | | > > I'm in full agreement in being more specific when we have more WP classes, such as WP_Post. |
| 4 | | > |
| 5 | | > Now that we have the WP_Post class, how do you imagine documenting all the accepted types here? |
| 6 | | > |
| 7 | | > Something like this? |
| 8 | | > |
| 9 | | > {{{ |
| 10 | | > @param int|WP_Post|stdClass $post Post ID, WP_Post object, or stdClass resembling a post. Optional, default is the current post from the loop. |
| 11 | | > }}} |
| 12 | | |
| 13 | | The type should be `object`, leaving the parameter description to spell out which object types are accepted. |
| | 1 | Edit: nevermind. |