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 |
|---|---|
| 279 | } |
| 280 | |
| 281 | if ( current_user_can('edit_themes') ) |
| 282 | $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>'; |
| 283 | |
| 284 | if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $stylesheet != get_option( 'stylesheet' ) && $stylesheet != get_option( 'template' ) ) |
| 285 | $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>'; |
| 286 | |
| 287 | $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme, $context ); |
| 288 | $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme, $context ); |
| 289 | |
| 290 | $class = ! $allowed ? 'inactive' : 'active'; |
| 291 | $checkbox_id = "checkbox_" . md5( $theme->get('Name') ); |
| 292 | $checkbox = "<input type='checkbox' name='checked[]' value='" . esc_attr( $stylesheet ) . "' id='" . $checkbox_id . "' /><label class='screen-reader-text' for='" . $checkbox_id . "' >" . __('Select') . " " . $theme->display('Name') . "</label>"; |
| 293 | |
| 294 | $id = sanitize_html_class( $theme->get_stylesheet() ); |
| 295 | |
| 296 | if ( ! empty( $totals['upgrade'] ) && ! empty( $theme->update ) ) |
| 297 | $class .= ' update'; |