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

Version File Type
2.1 wp-includes/classes.php View hook in source action
2.2 wp-includes/classes.php View hook in source action
2.3 wp-includes/classes.php View hook in source action
2.5 wp-includes/classes.php View hook in source action
2.6 wp-includes/classes.php View hook in source action
2.7 wp-includes/classes.php View hook in source action
2.8 wp-includes/classes.php View hook in source action
2.9 wp-includes/classes.php View hook in source action
3.0 wp-includes/classes.php View hook in source action
3.1 wp-includes/class-wp.php View hook in source action
3.2 wp-includes/class-wp.php View hook in source action
3.3 wp-includes/class-wp.php View hook in source action