Fires once the WordPress environment has been set up.
Parameters
$wp
WP- Current WordPress environment instance (passed by reference).
Source
do_action_ref_array( 'wp', array( &$this ) );
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
Fires once the WordPress environment has been set up.
$wp
WPdo_action_ref_array( 'wp', array( &$this ) );
Version | Description |
---|---|
2.1.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
This action will allow us to set a cookie in the headers but still have access to the WP class object. This example will show you how to set a cookie if you are on a specific page ID.
Please note that this hook is working only front pages or if there is WP query on the page (posts page).
Normal admin pages such as admin > widget, this hook will never be called.