151 | | * @param array $linkdata Elements that make up the link to insert. |
152 | | * @param bool $wp_error Optional. Whether to return a WP_Error object on failure. Default false. |
| 151 | * @param array $linkdata { |
| 152 | * Elements that make up the link to insert. |
| 153 | * |
| 154 | * @type int $link_id Optional. The ID of the existing link if updating. |
| 155 | * @type string $link_url The URL the link points to. |
| 156 | * @type string $link_name The title of the link. |
| 157 | * @type string $link_image Optional. A URL of an image. |
| 158 | * @type string $link_target Optional. The target element for the anchor tag. |
| 159 | * @type string $link_description Optional. A short description of the link. |
| 160 | * @type string $link_visible Optional. Y means visible, anything else means not. |
| 161 | * @type int $link_owner Optional. A user ID. |
| 162 | * @type int $link_rating Optional. A rating for the link. |
| 163 | * @type string $link_updated Optional. When the link was last updated. |
| 164 | * @type string $link_rel Optional. A relationship of the link to you. |
| 165 | * @type string $link_notes Optional. An extended description of or notes on the link. |
| 166 | * @type string $link_rss Optional. An URL of an associated RSS feed. |
| 167 | * @type int $link_category Optional. The term ID of the link category. If empty, uses default link. |
| 168 | * } |
| 169 | * @param bool $wp_error Optional. Whether to return a WP_Error object on failure. Default false. |