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
2235                $gen = '<admin:generatorAgent rdf:resource="http://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) . '" />';
2236                break;
2237           case 'comment':
2238                $gen = '<!-- generator="WordPress/' . get_bloginfo( 'version' ) . '" -->';
2239                break;
2240           case 'export':
2241                $gen = '<!-- generator="WordPress/' . get_bloginfo_rss('version') . '" created="'. date('Y-m-d H:i') . '" -->';
2242                break;
2243      }
2244      return apply_filters( "get_the_generator_{$type}", $gen, $type );
2245 }
2246
2247 /**
2248  * Outputs the html checked attribute.
2249  *
2250  * Compares the first two arguments and if identical marks as checked
2251  *
2252  * @since 1.0.0
2253  *