wordpress / latest / hooks / url_to_postid.html

apply_filters( 'url_to_postid', string $url )

Filters the URL to derive the post ID from.

Parameters

$url string
The URL to derive the post ID from.

Source

File: wp-includes/rewrite.php. View all references

$url = apply_filters( 'url_to_postid', $url );

Used By

Used By Description

Changelog

Version Description
2.2.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/url_to_postid