user_can_richedit хук-фильтрWP 2.1.0

Filters whether the user can access the visual editor.

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

add_filter( 'user_can_richedit', 'wp_kama_user_can_richedit_filter' );

/**
 * Function for `user_can_richedit` filter-hook.
 * 
 * @param bool $wp_rich_edit Whether the user can access the visual editor.
 *
 * @return bool
 */
function wp_kama_user_can_richedit_filter( $wp_rich_edit ){

	// filter...
	return $wp_rich_edit;
}
$wp_rich_edit(true|false)
Whether the user can access the visual editor.

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

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

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

user_can_richedit()
user_can_richedit
wp-includes/general-template.php 3754
return apply_filters( 'user_can_richedit', $wp_rich_edit );

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

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