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
324            * directory name of the theme, which in most cases is synonymous
325            * with the template name.
326            *
327            * @since 3.1.0
328            *
329            * @param array    $actions An array of action links.
330            * @param WP_Theme $theme   The current WP_Theme object.
331            * @param string   $context Status of the theme.
332            */
333           $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme, $context );
334
335           $class = ! $allowed ? 'inactive' : 'active';
336           $checkbox_id = "checkbox_" . md5( $theme->get('Name') );
337           $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>";
338
339           $id = sanitize_html_class( $theme->get_stylesheet() );
340
341           if ( ! empty( $totals['upgrade'] ) && ! empty( $theme->update ) )
342                $class .= ' update';