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 |
---|---|
293 | } |
294 |
|
295 | if ( current_user_can('edit_themes') ) |
296 | $actions['edit'] = '<a href="' . esc_url('theme-editor.php?theme=' . $theme_key ) . '" title="' . esc_attr__('Open this theme in the Theme Editor') . '" class="edit">' . __('Edit') . '</a>'; |
297 |
|
298 | if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $theme_key != get_option( 'stylesheet' ) && $theme_key != get_option( 'template' ) ) |
299 | $actions['delete'] = '<a href="' . esc_url( wp_nonce_url( 'themes.php?action=delete-selected&checked[]=' . $theme_key . '&theme_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-themes' ) ) . '" title="' . esc_attr__( 'Delete this theme' ) . '" class="delete">' . __( 'Delete' ) . '</a>'; |
300 |
|
301 | $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme_key, $theme, $context ); |
302 | $actions = apply_filters( "theme_action_links_$theme_key", $actions, $theme_key, $theme, $context ); |
303 |
|
304 | $class = ! $allowed ? 'inactive' : 'active'; |
305 | $checkbox_id = "checkbox_" . md5( $theme->get('Name') ); |
306 | $checkbox = "<input type='checkbox' name='checked[]' value='" . esc_attr( $theme_key ) . "' id='" . $checkbox_id . "' /><label class='screen-reader-text' for='" . $checkbox_id . "' >" . __('Select') . " " . $theme->display('Name') . "</label>"; |
307 |
|
308 | $id = sanitize_html_class( $theme->get_stylesheet() ); |
309 |
|
310 | if ( ! empty( $totals['upgrade'] ) && ! empty( $theme->update ) ) |
311 | $class .= ' update'; |