Welcome, visitor! Log in
 

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 3.8.

Version File Line Type
2.1 wp-includes/classes.php 291 View hook in source action
2.2 wp-includes/classes.php 294 View hook in source action
2.3 wp-includes/classes.php 298 View hook in source action
2.5 wp-includes/classes.php 297 View hook in source action
2.6 wp-includes/classes.php 311 View hook in source action
2.7 wp-includes/classes.php 482 View hook in source action
2.8 wp-includes/classes.php 495 View hook in source action
2.9 wp-includes/classes.php 495 View hook in source action
3.0 wp-includes/classes.php 510 View hook in source action
3.1 wp-includes/class-wp.php 504 View hook in source action
3.2 wp-includes/class-wp.php 504 View hook in source action
3.3 wp-includes/class-wp.php 510 View hook in source action
3.4 wp-includes/class-wp.php 527 View hook in source action
3.5 wp-includes/class-wp.php 535 View hook in source action
3.6 wp-includes/class-wp.php 552 View hook in source action
3.7 wp-includes/class-wp.php 552 View hook in source action
3.8 wp-includes/class-wp.php 616 View hook in source action