apply_filters( ‘tiny_mce_plugins’, array $plugins, string $editor_id )

In this article

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.

Parameters

$pluginsarray
An array of default TinyMCE plugins.
$editor_idstring
Unique editor identifier, e.g. 'content'. Accepts 'classic-block' when called from block editor’s Classic block.

Source

$plugins = array_unique( apply_filters( 'tiny_mce_plugins', $plugins, $editor_id ) );

Changelog

VersionDescription
5.3.0The $editor_id parameter was added.
3.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.