the_permalink filter-hook . WP 1.0
This filter is documented in wp-includes/link-template.php
Usage
add_filter( 'the_permalink', 'filter_function_name_3637', 10, 2 ); function filter_function_name_3637( $permalink, $post_id ){ // filter... return $permalink; }
- $permalink
- -
- $post_id
- -
Where the hook is called
the_permalink
the_permalink
wp-includes/comment-template.php 2445
wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
wp-includes/comment-template.php 2458
wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
wp-includes/link-template.php 27
echo esc_url( apply_filters( 'the_permalink', get_permalink( $post ), $post ) );