Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_fullscreen_buttons

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1233
1234           /**
1235            * Filter the list of TinyMCE buttons for the fullscreen
1236            * 'Distraction Free Writing' editor.
1237            *
1238            * @since 3.2.0
1239            *
1240            * @param array $buttons An array of TinyMCE buttons for the DFW editor.
1241            */
1242           $buttons = apply_filters( 'wp_fullscreen_buttons', $buttons );
1243
1244           foreach ( $buttons as $button => $args ) {
1245                if ( 'separator' == $args ) {
1246                     continue;
1247                }
1248
1249                $onclick = ! empty( $args['onclick'] ) ? ' onclick="' . $args['onclick'] . '"' : '';
1250                $title = esc_attr( $args['title'] );
1251                ?>