link_title

Filters the OPML outline link title text.

Description

apply_filters( 'link_title', (string) $bookmark_link_name ); 

Parameters (1)

0. $bookmark_link_name (string)
The OPML outline title text.

Usage

To run the hook, copy the example below.
  1. $bookmark_link_name = apply_filters( 'link_title', $bookmark_link_name ); 
  2.  
  3. if ( !empty( $bookmark_link_name ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the link_title callback 
  2. function filter_link_title( $bookmark_link_name ) { 
  3. // make filter magic happen here... 
  4. return $bookmark_link_name
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'link_title', 'filter_link_title', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'link_title', 'filter_link_title', 10, 1 ); 

Defined (1)

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

/wp-links-opml.php  
  1. $title = apply_filters( 'link_title', $bookmark->link_name );