add_lighbox_rel

The evolve add lighbox rel function.

Description

add_lighbox_rel( $attachment_link ); 

Parameters (1)

0. $attachment_link
The attachment link.

Usage

  1. if ( !function_exists( 'add_lighbox_rel' ) ) { 
  2. require_once '/library/functions/pluggable.php'; 
  3.  
  4. // The attachment link. 
  5. $attachment_link = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = add_lighbox_rel($attachment_link); 
  9.  

Defined (1)

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

/library/functions/pluggable.php  
  1. function add_lighbox_rel($attachment_link) { 
  2. if (strpos($attachment_link, 'a href') != false && strpos($attachment_link, 'img src') != false) 
  3. $attachment_link = str_replace('a href', 'a rel="gallery" href', $attachment_link); 
  4. return $attachment_link;