WP HOOKS
filtrod 4.4.0

view_mode_post_types

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

Opis — z kodu źródłowego

Filters the post types that have different view mode options.

Parametry

ParametrTypOpis
$view_mode_post_typesstring[]Array of post types that can change view modes. Default post types with show_ui on.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'view_mode_post_types', 'twoja_funkcja' );

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

Popularne w tej kategorii