tiny_mce_plugins WordPress Filter Hook

The tiny_mce_plugins hook is used to add custom TinyMCE plugins. This hook is called during the TinyMCE init process.

apply_filters( 'tiny_mce_plugins', array $plugins, string $editor_id ) #

Filters the list of default TinyMCE plugins.


Description

The filter specifies which of the default plugins included in WordPress should be added to the TinyMCE instance.


Top ↑

Parameters

$plugins

(array)An array of default TinyMCE plugins.

$editor_id

(string)Unique editor identifier, e.g. 'content'. Accepts 'classic-block' when called from block editor's Classic block.


Top ↑

Source

File: wp-includes/class-wp-editor.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.3.0The $editor_id parameter was added.
3.3.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.