pre_post_link

pre_post_link

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_post_link') is found 1 times:

  • /wp-includes/link-template.php line 217
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    * @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 )
    ) {