A WordPress-centric search engine for devs and theme authors



{$adjacent}_image_link ›

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) $size Image size.
    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'.





Source

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