WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
737 | if ( $disable_captions ) { |
738 | $tinymce_settings['wpeditimage_disable_captions'] = true; |
739 | } |
740 |
|
741 | if ( ! empty( $editor_settings['tinymce'] ) && is_array( $editor_settings['tinymce'] ) ) { |
742 | array_merge( $tinymce_settings, $editor_settings['tinymce'] ); |
743 | } |
744 |
|
745 | /* This filter is documented in wp-includes/class-wp-editor.php */ |
746 | $tinymce_settings = apply_filters( 'tiny_mce_before_init', $tinymce_settings, 'classic-block' ); |
747 |
|
748 | // Do "by hand" translation from PHP array to js object. |
749 | // Prevents breakage in some custom settings. |
750 | $init_obj = ''; |
751 | foreach ( $tinymce_settings as $key => $value ) { |
752 | if ( is_bool( $value ) ) { |
753 | $val = $value ? 'true' : 'false'; |
754 | $init_obj .= $key . ':' . $val . ','; |
755 | continue; |