Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: theme_action_links_{$stylesheet}

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
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&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>';
286
287           $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $stylesheet, $theme, $context );
288           $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $stylesheet, $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';