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
1890                $gen = '<admin:generatorAgent rdf:resource="http://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) . '" />';
1891                break;
1892           case 'comment':
1893                $gen = '<!-- generator="WordPress/' . get_bloginfo( 'version' ) . '" -->';
1894                break;
1895           case 'export':
1896                $gen = '<!-- generator="WordPress/' . get_bloginfo_rss('version') . '" created="'. date('Y-m-d H:i') . '"-->';
1897                break;
1898      }
1899      return apply_filters( "get_the_generator_{$type}", $gen, $type );
1900 }
1901
1902 ?>
1903