Browse: Home / Functions /

learndash_disable_editor_on_certificate

learndash_disable_editor_on_certificate( array $return )

Disables the visual editor for the certificate post type edit screen.


Description #

User should not be able to use the visual editor tab. Fires on wp_default_editor hook.


Parameters #

$return

(array) (Required) An array of editors. Accepts 'tinymce', 'html', 'test'.


Return #

(array|string) $return The type of the editor.


Source #

File: includes/ld-certificates.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.