WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
155 | if ( !defined('COOKIEPATH') ) |
156 | define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) ); |
157 | if ( !defined('SITECOOKIEPATH') ) |
158 | define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) ); |
159 | if ( !defined('COOKIE_DOMAIN') ) |
160 | define('COOKIE_DOMAIN', false); |
161 |
|
162 | require (ABSPATH . WPINC . '/vars.php'); |
163 |
|
164 | do_action('core_files_loaded'); |
165 |
|
166 | // Check for hacks file if the option is enabled |
167 | if (get_settings('hack_file')) { |
168 | if (file_exists(ABSPATH . '/my-hacks.php')) |
169 | require(ABSPATH . '/my-hacks.php'); |
170 | } |
171 |
|
172 | if ( get_settings('active_plugins') ) { |
173 | $current_plugins = get_settings('active_plugins'); |