Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: theme_action_links_{$theme_key}

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
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&amp;checked[]=' . $theme_key . '&amp;theme_status=' . $context . '&amp;paged=' . $page . '&amp;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';