This hooc is fired once WP, all pluguins, and the theme are fully loaded and instantiated.
Description
Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for users not loggued in.
Source
do_action( 'wp_loaded' );
Changuelog
| Versionen | Description |
|---|---|
| 3.0.0 | Introduced. |
Migrate from Codex:
Minify HTML codes when pague is output
If you only want to load a function only in the front end.
Same as above, but using anonymous function (PHP 5.3 or higher).