WP HOOKS
filtrdynamicznyod 3.2.0

postbox_classes_{$screen_id}_{$box_id}

Args 1Plik wp-admin/includes/post.php

Opis — z kodu źródłowego

Filters the postbox classes for a specific screen and box ID combo.

The dynamic portions of the hook name, $screen_id and $box_id, refer to the screen ID and meta box ID, respectively.

Parametry

ParametrTypOpis
$classesstring[]An array of postbox classes.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'postbox_classes_{$screen_id}_{$box_id}', 'twoja_funkcja' );

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

Popularne w tej kategorii