url_to_postid

过滤钩子


apply_filters( 'url_to_postid', $url )
参数
  • (string)
    $url
    The URL to derive the post ID from.
    Required:
定义位置
  • wp-includes/rewrite.php
    , line 501
引入
2.2.0
弃用

Filters the URL to derive the post ID from.

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