tiny_mce_before_init

Filters the TinyMCE config before init.

Description

add_filter( 'tiny_mce_before_init', (string) $atd_change_mce_settings ); 

Parameters (1)

0. $atd_change_mce_settings (string) => 'AtD_change_mce_settings'
The atd change mce settings.

Usage

To run the hook, copy the example below.
  1. $atd_change_mce_settings = apply_filters( 'tiny_mce_before_init', $atd_change_mce_settings ); 
  2.  
  3. if ( !empty( $atd_change_mce_settings ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the tiny_mce_before_init callback 
  2. function filter_tiny_mce_before_init( $atd_change_mce_settings ) { 
  3. // make filter magic happen here... 
  4. return $atd_change_mce_settings
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'tiny_mce_before_init', 'filter_tiny_mce_before_init', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'tiny_mce_before_init', 'filter_tiny_mce_before_init', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/modules/after-the-deadline.php  
  1. add_filter( 'tiny_mce_before_init', 'AtD_change_mce_settings' );