filtrod 5.5.0
wp_image_file_matches_image_meta
Opis — z kodu źródłowego
Filters whether an image path or URI matches image meta.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$match | bool | Whether the image relative path from the image meta matches the end of the URI or path to the image file. |
$image_location | string | Full path or URI to the tested image file. |
$image_meta | array | The image meta data as returned by 'wp_get_attachment_metadata()'. |
$attachment_id | int | The 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
}
// 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