tiny_mce_plugins

tiny_mce_plugins

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('tiny_mce_plugins') is found 2 times:

  • /wp-includes/class-wp-editor.php line 461
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    * @param array  $plugins   An array of default TinyMCE plugins.
     * @param string $editor_id Unique editor identifier, e.g. 'content'. Accepts 'classic-block'
     *                          when called from block editor's Classic block.
     */
    $plugins = array_unique( apply_filters( 'tiny_mce_plugins', $plugins, $editor_id ) );
     
    $key = array_search( 'spellchecker', $plugins, true );
    if ( false !== $key ) {
        /*
         * Remove 'spellchecker' from the internal plugins if added with 'tiny_mce_plugins' filter to prevent errors.
         * It can be added with 'mce_external_plugins'.
  • /wp-includes/script-loader.php line 544
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
        'wpview',
    );
     
    /** This filter is documented in wp-includes/class-wp-editor.php */
    $tinymce_plugins = apply_filters( 'tiny_mce_plugins', $tinymce_plugins, 'classic-block' );
    $tinymce_plugins = array_unique( $tinymce_plugins );
     
    $disable_captions = false;
    // Runs after `tiny_mce_plugins` but before `mce_buttons`.
    /** This filter is documented in wp-admin/includes/media.php */
    if ( apply_filters( 'disable_captions', '' ) ) {

See this hook used in plugins: