WordPress hook directory
init

Description

Runs after WordPress has finished loading but before any headers are sent. Useful for intercepting $_GET or $_POST triggers.

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for init

This database has information for all major versions from WP 1.2.1 through 5.1.

Version File Line Type
1.5.2 wp-settings.php 169 View in context action
2.0 wp-settings.php 227 View in context action
2.0.11 wp-settings.php 228 View in context action
2.1 wp-settings.php 267 View in context action
2.2 wp-settings.php 264 View in context action
2.3 wp-settings.php 299 View in context action
2.5 wp-settings.php 469 View in context action
2.6 wp-settings.php 549 View in context action
2.7 wp-settings.php 593 View in context action
2.8 wp-settings.php 684 View in context action
2.9 wp-settings.php 737 View in context action
3.0 wp-settings.php 283 View in context action
3.1 wp-settings.php 298 View in context action
3.2 wp-settings.php 302 View in context action
3.3 wp-settings.php 304 View in context action
3.4 wp-settings.php 302 View in context action
3.5 wp-settings.php 306 View in context action
3.6 wp-settings.php 308 View in context action
3.7 wp-settings.php 340 View in context action
3.8 wp-settings.php 347 View in context action
3.9 wp-settings.php 352 View in context action
4.0 wp-settings.php 353 View in context action
4.1 wp-settings.php 353 View in context action
4.2 wp-settings.php 353 View in context action
4.3 wp-settings.php 353 View in context action
4.4 wp-settings.php 392 View in context action
4.5 wp-settings.php 393 View in context action
4.6 wp-settings.php 411 View in context action
4.7 wp-settings.php 449 View in context action
4.8 wp-settings.php 448 View in context action
4.9 wp-settings.php 450 View in context action
5.0 wp-settings.php 467 View in context action
5.1 wp-settings.php 505 View in context action

Related Hooks

We find related hooks using word stems. init has 1 significant word stem(s): init. Note that some of the hooks below may not appear in all versions of WP.