pre_post_link

pre_post_link

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_post_link') is found 1 times:

  • /wp-includes/link-template.php line 217
    	 * @param string  $permalink The site's permalink structure.
    	 * @param WP_Post $post      The post in question.
    	 * @param bool    $leavename Whether to keep the post name.
    	 */
    	$permalink = apply_filters( 'pre_post_link', $permalink, $post, $leavename );
    
    	if (
    		$permalink &&
    		! wp_force_plain_post_permalink( $post )
    	) {