WP HOOKS
filtrod 2.9.0

load_image_to_edit_path

Args 3Plik wp-admin/includes/image.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the returned path or URL of the current image.

Parametry

ParametrTypOpis
$filepathstring | falseFile path or URL to current image, or false.
$attachment_idintAttachment ID.
$sizestring | int[]Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

Wywołanie

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

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

Popularne w tej kategorii