url_to_postid filter-hook . WP 2.2.0
Filters the URL to derive the post ID from.
Usage
add_filter( 'url_to_postid', 'filter_function_name_9867' ); function filter_function_name_9867( $url ){ // filter... return $url; }
- $url(string)
- The URL to derive the post ID from.
Changelog
Since 2.2.0 | Introduced. |
Where the hook is called
url_to_postid
wp-includes/rewrite.php 478
$url = apply_filters( 'url_to_postid', $url );