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
2201                $gen = '<admin:generatorAgent rdf:resource="http://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) . '" />';
2202                break;
2203           case 'comment':
2204                $gen = '<!-- generator="WordPress/' . get_bloginfo( 'version' ) . '" -->';
2205                break;
2206           case 'export':
2207                $gen = '<!-- generator="WordPress/' . get_bloginfo_rss('version') . '" created="'. date('Y-m-d H:i') . '" -->';
2208                break;
2209      }
2210      return apply_filters( "get_the_generator_{$type}", $gen, $type );
2211 }
2212
2213 /**
2214  * Outputs the html checked attribute.
2215  *
2216  * Compares the first two arguments and if identical marks as checked
2217  *
2218  * @since 1.0.0
2219  *