custom_menu_order хук-фильтрWP 2.8.0

Filters whether to enable custom ordering of the administration menu.

See the menu_order filter for reordering menu items.

Использование

add_filter( 'custom_menu_order', 'wp_kama_custom_menu_order_filter' );

/**
 * Function for `custom_menu_order` filter-hook.
 * 
 * @param bool $custom Whether custom ordering is enabled.
 *
 * @return bool
 */
function wp_kama_custom_menu_order_filter( $custom ){

	// filter...
	return $custom;
}
$custom(true|false)
Whether custom ordering is enabled.
По умолчанию: false

Список изменений

С версии 2.8.0 Введена.

Где вызывается хук

В файле: /wp-admin/includes/menu.php
custom_menu_order
wp-admin/includes/menu.php 284
if ( apply_filters( 'custom_menu_order', false ) ) {

Где используется хук в WordPress

Использование не найдено.