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.2

apply_filters('post_link') is found 1 times:

  • /wp-includes/link-template.php line 308
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
         * @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: