post_link

post_link

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('post_link') is found 1 times:

  • /wp-includes/link-template.php line 308
    	 * @param string  $permalink The post's permalink.
    	 * @param WP_Post $post      The post in question.
    	 * @param bool    $leavename Whether to keep the post name.
    	 */
    	return apply_filters( 'post_link', $permalink, $post, $leavename );
    }
    
    /**
     * Retrieves the permalink for a post of a custom post type.
     *
     * @since 3.0.0
    

See this hook used in plugins: