WP HOOKS
filtrod 2.5.0

pre_remote_source

Args 2Plik wp-includes/class-wp-xmlrpc-server.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the pingback remote source.

Parametry

ParametrTypOpis
$remote_sourcestringResponse source for the page linked from.
$pagelinkedtostringURL of the page linked to.

Wywołanie

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

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

Popularne w tej kategorii