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 |
|---|---|
| 688 | 'blockquote' => array( 'title' => __('Blockquote (Alt + Shift + Q)'), 'onclick' => 'fullscreen.blockquote();', 'both' => false ), |
| 689 | 'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "fullscreen.medialib();", 'both' => true ), |
| 690 | '2' => 'separator', |
| 691 | 'link' => array( 'title' => __('Insert/edit link (Alt + Shift + A)'), 'onclick' => 'fullscreen.link();', 'both' => true ), |
| 692 | 'unlink' => array( 'title' => __('Unlink (Alt + Shift + S)'), 'onclick' => 'fullscreen.unlink();', 'both' => false ), |
| 693 | '3' => 'separator', |
| 694 | 'help' => array( 'title' => __('Help (Alt + Shift + H)'), 'onclick' => 'fullscreen.help();', 'both' => false ) |
| 695 | ); |
| 696 | |
| 697 | $buttons = apply_filters( 'wp_fullscreen_buttons', $buttons ); |
| 698 | |
| 699 | foreach ( $buttons as $button => $args ) { |
| 700 | if ( 'separator' == $args ) { ?> |
| 701 | <div><span aria-orientation="vertical" role="separator" class="mceSeparator"></span></div> |
| 702 | <?php continue; |
| 703 | } ?> |
| 704 | |
| 705 | <div<?php if ( $args['both'] ) { ?> class="wp-fullscreen-both"<?php } ?>> |
| 706 | <a title="<?php echo $args['title']; ?>" onclick="<?php echo $args['onclick']; ?>return false;" class="mceButton mceButtonEnabled mce_<?php echo $button; ?>" href="#" id="wp_fs_<?php echo $button; ?>" role="button" aria-pressed="false"> |