Tag Usage Description
@access public
private
protected
Indicates access control for a function/method.
@access private indicates the function should not be documented.
Used directly below the @since line in block.
@deprecated version x.x.x
replacement function name
What version of WordPress the function/method was deprecated. Use 3-digit version number. Should be accompanied by a matching @see tag.
@global type global
$varname
description
Document global(s) used in the function/method. For boolean and integer types, use bool and int, respectively.
@internal information string Typically used for adding notes for internal use only.
@ignore (standalone) Used to skip parsing of the entire element.
@link URL Link to additional information for the function/method.
For an external script/library, links to source.
Not to be used for related functions/methods; use @see instead.
@method returntype
description
Shows a "magic" method found inside the class.
@package packagename Specifies package that all functions, includes, and defines in the file belong to. Found in DocBlock at top of the file. For core (and bundled themes), this is always WordPress.
@param datatype $variable
description
Function/method parameter of the format: parameter type, variable name, description, default behavior. For boolean and integer types, use bool and int, respectively.
@return datatype description Document the return value of functions or methods. @return void should not be used outside of the default bundled themes. For boolean and integer types, use bool and int, respectively.
@see elementname References another function/method/class the function/method relies on.
@since version x.x.x Documents release version function/method was added. Use 3-digit version number – this is to aid with version searches, and for use when comparing versions in code. Exception is @since MU.
@subpackage subpackagename For page-level DocBlock, specifies the Component that all functions and defines in file belong to. For class-level DocBlock, specifies the subpackage/component the class belongs to.
@todo information string Documents planned changes to an element that have not been implemented.
@type datatype description for an argument array value Used to denote argument array value types. See the Hooks or Parameters That Are Arrays sections for example syntax.
@uses class::methodname()
class::$variablename
functionname()
Note: This tag has been used in the past, but should no longer be used.
References a key function/method used. May include a short description.
@var datatype description Data type for a class variable and short description. Callbacks are marked callback.