wpseek.com
A WordPress-centric search engine for devs and theme authors



{$adjacent}_image_link › WordPress Filter Hooks

Since3.5.0
Deprecatedn/a
apply_filters( "{$adjacent}_image_link", $output, $attachment_id, $size, $text )
Parameters: (4)
  • (string) $output Adjacent image HTML markup.
    Required: Yes
  • (int) $attachment_id Attachment ID
    Required: Yes
  • (string|int[]) $size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Required: Yes
  • (string) $text Link text.
    Required: Yes
Defined at:
Codex:

Filters the adjacent image link.

The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, either 'next', or 'previous'.

Possible hook names include:

  • next_image_link
  • previous_image_link




Source

return apply_filters( "{$adjacent}_image_link", $output, $attachment_id, $size, $text );