WP HOOKS
akcjadynamicznyod 2.1.0

load-{$pagenow}

Args 0Plik wp-admin/admin.php

Opis — z kodu źródłowego

Fires before a particular screen is loaded.

The load-* hook fires in a number of contexts. This hook is for core screens. The dynamic portion of the hook name, $pagenow, is a global variable referring to the filename of the current screen, such as 'admin.php', 'post-new.php' etc. A complete hook for the latter would be 'load-post-new.php'.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'load-{$pagenow}', 'twoja_funkcja' );

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

Popularne w tej kategorii