WP HOOKS
akcjaod 5.0.0

block_editor_meta_box_hidden_fields

Args 1Plik wp-admin/includes/post.phpDokumentacja WP ↗

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

ParametrTypOpis
$post\WP_PostThe 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
}

Popularne w tej kategorii