Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

WordPress hook directory
wp

Description

Executes after the query has been parsed and post(s) loaded, but before any template execution, inside the main WordPress function wp. Useful if you need to have access to post data but can't use templates for output. Action function argument: WP object ($wp) by reference.

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 wp

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

Version File Line Type
2.1 wp-includes/classes.php 291 View in context action
2.2 wp-includes/classes.php 294 View in context action
2.3 wp-includes/classes.php 298 View in context action
2.5 wp-includes/classes.php 297 View in context action
2.6 wp-includes/classes.php 311 View in context action
2.7 wp-includes/classes.php 482 View in context action
2.8 wp-includes/classes.php 495 View in context action
2.9 wp-includes/classes.php 495 View in context action
3.0 wp-includes/classes.php 510 View in context action
3.1 wp-includes/class-wp.php 504 View in context action
3.2 wp-includes/class-wp.php 504 View in context action
3.3 wp-includes/class-wp.php 510 View in context action
3.4 wp-includes/class-wp.php 527 View in context action
3.5 wp-includes/class-wp.php 535 View in context action
3.6 wp-includes/class-wp.php 552 View in context action
3.7 wp-includes/class-wp.php 552 View in context action
3.8 wp-includes/class-wp.php 616 View in context action
3.9 wp-includes/class-wp.php 623 View in context action
4.0 wp-includes/class-wp.php 623 View in context action
4.1 wp-includes/class-wp.php 622 View in context action
4.2 wp-includes/class-wp.php 622 View in context action
4.3 wp-includes/class-wp.php 633 View in context action
4.4 wp-includes/class-wp.php 687 View in context action
4.5 wp-includes/class-wp.php 737 View in context action
4.6 wp-includes/class-wp.php 738 View in context action
4.7 wp-includes/class-wp.php 746 View in context action
4.8 wp-includes/class-wp.php 746 View in context action
4.9 wp-includes/class-wp.php 726 View in context action
5.0 wp-includes/class-wp.php 726 View in context action
5.1 wp-includes/class-wp.php 750 View in context action