link_title
Filter HookDescription
Filters the OPML outline link title text.Hook Information
File Location |
wp-links-opml.php
View on GitHub
|
Hook Type | Filter |
Line Number | 81 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$title
|
The OPML outline title text. |
Usage Examples
Basic Usage
<?php
// Hook into link_title
add_filter('link_title', 'my_custom_filter', 10, 1);
function my_custom_filter($title) {
// Your custom filtering logic here
return $title;
}
Source Code Context
wp-links-opml.php:81
- How this hook is used in WordPress core
<?php
76 *
77 * @since 2.2.0
78 *
79 * @param string $title The OPML outline title text.
80 */
81 $title = apply_filters( 'link_title', $bookmark->link_name );
82 ?>
83 <outline text="<?php echo esc_attr( $title ); ?>" type="link" xmlUrl="<?php echo esc_url( $bookmark->link_rss ); ?>" htmlUrl="<?php echo esc_url( $bookmark->link_url ); ?>" updated="
84 <?php
85 if ( '0000-00-00 00:00:00' !== $bookmark->link_updated ) {
86 echo $bookmark->link_updated;
PHP Documentation
<?php
/**
* Filters the OPML outline link title text.
*
* @since 2.2.0
*
* @param string $title The OPML outline title text.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-links-opml.php
Related Hooks
Related hooks will be displayed here in future updates.