post_type_link

post_type_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_type_link') is found 1 times:

  • /wp-includes/link-template.php line 375
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
         * @param WP_Post $post      The post in question.
         * @param bool    $leavename Whether to keep the post name.
         * @param bool    $sample    Is it a sample permalink.
         */
        return apply_filters( 'post_type_link', $post_link, $post, $leavename, $sample );
    }
     
    /**
     * Retrieves the permalink for the current page or page ID.
     *
     * Respects page_on_front. Use this one.

See this hook used in plugins: