Comment Your Code

 * Describe what your function does. 
 * @since 1.1.1 (Set the version this function was introduced)
 * (Mention the variables the function uses)
 * What:     Type:         Variable:        Description:
 * @param    array         $variable_name   This is what this variable does.
 * @param    int           $width           Width of the image in pixels.
 * @param    string|array  $size            Optional. Size or array of sizes of the result image.
 * (Mention what the return output would be)
 * @return   array                          Returns Width and height.

This is a header style comment, it would be placed ABOVE your custom function. Place as much information as possible inside the comment tags.


Leave a Reply