Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_the_generator_{$type}

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
1178                $gen = '<admin:generatorAgent rdf:resource="http://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) . '" />';
1179                break;
1180           case 'comment':
1181                $gen = '<!-- generator="WordPress/' . get_bloginfo( 'version' ) . '" -->';
1182                break;
1183           case 'export':
1184                $gen = '<!-- generator="WordPress/' . get_bloginfo_rss('version') . '" created="'. date('Y-m-d H:i') . '"-->';
1185                break;
1186      }
1187      return apply_filters( "get_the_generator_{$type}", $gen, $type );
1188 }
1189 ?>
1190