WP HOOKS
filtrod 2.8.0

image_send_to_editor_url

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

Opis — z kodu źródłowego

Filters the image URL sent to the editor.

Parametry

ParametrTypOpis
$htmlstringHTML markup sent to the editor for an image.
$srcstringImage source URL.
$altstringImage alternate, or alt, text.
$alignstringThe image alignment. Default 'alignnone'. Possible values include 'alignleft', 'aligncenter', 'alignright', 'alignnone'.

Wywołanie

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

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

Popularne w tej kategorii