WP HOOKS
filtrod 5.5.0

wp_image_file_matches_image_meta

Args 4Plik wp-includes/media.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether an image path or URI matches image meta.

Parametry

ParametrTypOpis
$matchboolWhether the image relative path from the image meta matches the end of the URI or path to the image file.
$image_locationstringFull path or URI to the tested image file.
$image_metaarrayThe image meta data as returned by 'wp_get_attachment_metadata()'.
$attachment_idintThe image attachment ID or 0 if not supplied.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_image_file_matches_image_meta', 'twoja_funkcja', 10, 4 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
	// Twój kod
}

Popularne w tej kategorii