Filter hook 'index_rel_link'

in WP Core File wp-includes/deprecated.php at line 2743

View Source

index_rel_link

Filter Hook
Description
Get site index relational link.

Hook Information

File Location wp-includes/deprecated.php View on GitHub
Hook Type Filter
Line Number 2743

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into index_rel_link
add_filter('index_rel_link', 'my_custom_filter');

function my_custom_filter() {
    // Your custom filtering logic here
    return 'modified_value';
}

Source Code Context

wp-includes/deprecated.php:2743 - How this hook is used in WordPress core
<?php
2738   */
2739  function get_index_rel_link() {
2740  	_deprecated_function( __FUNCTION__, '3.3.0' );
2741  
2742  	$link = "<link rel='index' title='" . esc_attr( get_bloginfo( 'name', 'display' ) ) . "' href='" . esc_url( user_trailingslashit( get_bloginfo( 'url', 'display' ) ) ) . "' />\n";
2743  	return apply_filters( "index_rel_link", $link );
2744  }
2745  
2746  /**
2747   * Display relational link for the site index.
2748   *

PHP Documentation

<?php
/**
 * Get site index relational link.
 *
 * @since 2.8.0
 * @deprecated 3.3.0
 *
 * @return string
 */
Quick Info
  • Hook Type: Filter
  • Parameters: 0
  • File: wp-includes/deprecated.php
Related Hooks

Related hooks will be displayed here in future updates.