akcjaod 3.0.0
do_meta_boxes
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
| Parametr | Typ | Opis |
|---|---|---|
$post_type | string | Post type of the post on Edit Post screen, 'link' on Edit Link screen, 'dashboard' on Dashboard screen. |
$context | string | Meta box context. Possible values include 'normal', 'advanced', 'side'. |
$post | \WP_Post | object | string | Post 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
}
// 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