the_attachment_links

This was once used to display attachment links.

Description

the_attachment_links( (bool) $id = false ); 

Now it is deprecated and stubbed.

Parameters (1)

0. $id — Optional. (bool) => false
The id.

Usage

  1. if ( !function_exists( 'the_attachment_links' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4. // The id. 
  5. $id = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = the_attachment_links($id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/deprecated.php  
  1. function the_attachment_links( $id = false ) { 
  2. _deprecated_function( __FUNCTION__, '3.7.0' );