wordpress get id with slug url code example
Example: get id by url wordpress
// https://developer.wordpress.org/reference/functions/url_to_postid/
url_to_postid( string $url )
// https://developer.wordpress.org/reference/functions/url_to_postid/
url_to_postid( string $url )