user_can_richedit WordPress Filter Hook

This hook allows you to specify whether a user can access the rich text editor. This is useful for sites that want to disable the rich text editor for certain users.

apply_filters( 'user_can_richedit', bool $wp_rich_edit ) #

Filters whether the user can access the visual editor.


Parameters

$wp_rich_edit

(bool)Whether the user can access the visual editor.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More