Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: language_attributes

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
1011      if ( $lang = get_bloginfo('language') ) {
1012           if ( get_option('html_type') == 'text/html' || $doctype == 'xhtml' )
1013                $attributes[] = "lang=\"$lang\"";
1014
1015           if ( get_option('html_type') != 'text/html' || $doctype == 'xhtml' )
1016                $attributes[] = "xml:lang=\"$lang\"";
1017      }
1018
1019      $output = implode(' ', $attributes);
1020      $output = apply_filters('language_attributes', $output);
1021      echo $output;
1022 }
1023
1024 function paginate_links( $args = '' ) {
1025      $defaults = array(
1026           'base' => '%_%', // http://example.com/all_posts.php%_% : %_% is replaced by format (below)
1027           'format' => '?page=%#%', // ?page=%#% : %#% is replaced by the page number
1028           'total' => 1,
1029           'current' => 0,