akcjaod 5.0.0
block_editor_meta_box_hidden_fields
Opis — z kodu źródłowego
Adds hidden input fields to the meta box save form.
Hook into this action to print <input type="hidden" ... /> fields, which will be POSTed back to the server when meta boxes are saved.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post | \WP_Post | The post that is being edited. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'block_editor_meta_box_hidden_fields', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'block_editor_meta_box_hidden_fields', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii