Filter hook 'teeny_mce_plugins'

in WP Core File wp-includes/class-wp-editor.php at line 386

View Source

teeny_mce_plugins

Filter Hook
Description
Filters the list of teenyMCE plugins.

Hook Information

File Location wp-includes/class-wp-editor.php View on GitHub
Hook Type Filter
Line Number 386

Hook Parameters

Type Name Description
array $plugins An array of teenyMCE plugins.
string $editor_id Unique editor identifier, e.g. 'content'.

Usage Examples

Basic Usage
<?php
// Hook into teeny_mce_plugins
add_filter('teeny_mce_plugins', 'my_custom_filter', 10, 2);

function my_custom_filter($plugins, $editor_id) {
    // Your custom filtering logic here
    return $plugins;
}

Source Code Context

wp-includes/class-wp-editor.php:386 - How this hook is used in WordPress core
<?php
 381  					 * @since 3.3.0 The `$editor_id` parameter was added.
 382  					 *
 383  					 * @param array  $plugins   An array of teenyMCE plugins.
 384  					 * @param string $editor_id Unique editor identifier, e.g. 'content'.
 385  					 */
 386  					$plugins = apply_filters(
 387  						'teeny_mce_plugins',
 388  						array(
 389  							'colorpicker',
 390  							'lists',
 391  							'fullscreen',

PHP Documentation

<?php
/**
					 * Filters the list of teenyMCE plugins.
					 *
					 * @since 2.7.0
					 * @since 3.3.0 The `$editor_id` parameter was added.
					 *
					 * @param array  $plugins   An array of teenyMCE plugins.
					 * @param string $editor_id Unique editor identifier, e.g. 'content'.
					 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/class-wp-editor.php
Related Hooks

Related hooks will be displayed here in future updates.