WP HOOKS
akcjadynamicznyod 1.5.0

load-{$plugin_page}

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 plugin screens where the file to load is directly included, rather than the use of a function. The dynamic portion of the hook name, $plugin_page, refers to the plugin basename.

Wywołanie

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

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

Popularne w tej kategorii