Filter hook 'attachment_url_to_postid'

in WP Core File wp-includes/media.php at line 5355

Description

Filters an attachment ID found by URL.

Occurrences

Filename Line Number
wp-includes/media.php 5355

Parameters

Type Name Description
int|null $post_id The post_id (if any) found by the function.
string $url The URL being looked up.

PHP Doc

/**
	 * Filters an attachment ID found by URL.
	 *
	 * @since 4.2.0
	 *
	 * @param int|null $post_id The post_id (if any) found by the function.
	 * @param string   $url     The URL being looked up.
	 */