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 |
---|---|
111 | * Filter the tabs shown on the Add Themes screen. |
112 | * |
113 | * This filter is for backwards compatibility only, for the suppression |
114 | * of the upload tab. |
115 | * |
116 | * @since 2.8.0 |
117 | * |
118 | * @param array $tabs The tabs shown on the Add Themes screen. Default is 'upload'. |
119 | */ |
120 | $tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) ); |
121 | if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_themes' ) ) { |
122 | echo ' <a href="#" class="upload page-title-action">' . __( 'Upload Theme' ) . '</a>'; |
123 | echo ' <a href="#" class="browse-themes page-title-action">' . _x( 'Browse', 'themes' ) . '</a>'; |
124 | } |
125 | ?></h1> |
126 |
|
127 | <div class="upload-theme"> |
128 | <?php install_themes_upload(); ?> |
129 | </div> |