Closed bobbingwide closed 4 years ago
The current solution can't handle a number of things.
--
at the start of a line in the descriptionSee http://core.wp-a2z.org/oik_api/register_post_type/ for an example vs. https://developer.wordpress.org/reference/functions/register_post_type/
Note: developer.wordpress.org converts the parameter name in the @type
tag from $name
to 'name'
but in subsequent references uses the $
prefix.
To fix {@see 'hook_name'} we'll replace it with the [hook] shortcode passing a special value of '.' for the second parameter ( type ).
When the value is '.':
The solution can't handle **
at the start and end of a line, which should be interpreted as bold markdown.
Example: http://woocommerce.wp-a2z.org/oik_api/remove_accents/ Accent characters converted:
The solution can't handle
**
at the start and end of a line, which should be interpreted as bold markdown.
Still doesn’t work. It would appear that oikai_check_its_a_list needs improving for both **
and --
. With the check on the previous line being applied at a different time perhaps?
developer.wordpress.org nicely formats
@param
tags where the parameter type is an array. Each array field is documented once when the array is first defined e.g.and then it's referenced in all other params via an
@see
tag.WordPress documentation is here
https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/#1-1-parameters-that-are-arrays
The WordPress documentation refers to phpDocumentor standards which uses a slightly different approach. e.g.
Great!
@var
instead of@type
BTW: The WordPress documentation mentions something called hash notation. It doesn't describe what hash notation is supposed to be. But it does link to phpDocumentor PSR-5 recommendations... where there is no mention of the term.
Super..
:sarcasm off.