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
356            * directory name of the theme, which in most cases is synonymous
357            * with the template name.
358            *
359            * @since 3.1.0
360            *
361            * @param array    $actions An array of action links.
362            * @param WP_Theme $theme   The current WP_Theme object.
363            * @param string   $context Status of the theme.
364            */
365           $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme, $context );
366
367           $class = ! $allowed ? 'inactive' : 'active';
368           $checkbox_id = "checkbox_" . md5( $theme->get('Name') );
369           $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>";
370
371           $id = sanitize_html_class( $theme->get_stylesheet() );
372
373           if ( ! empty( $totals['upgrade'] ) && ! empty( $theme->update ) )
374                $class .= ' update';