WP HOOKS
akcjaod 3.0.0

do_meta_boxes

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

Opis — z kodu źródłowego

Fires after meta boxes have been added.

Fires once for each of the default meta box contexts: normal, advanced, and side.

Parametry

ParametrTypOpis
$post_typestringPost type of the post on Edit Post screen, 'link' on Edit Link screen, 'dashboard' on Dashboard screen.
$contextstringMeta box context. Possible values include 'normal', 'advanced', 'side'.
$post\WP_Post | object | stringPost object on Edit Post screen, link object on Edit Link screen, an empty string on Dashboard screen.

Wywołanie

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

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

Popularne w tej kategorii