Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Info about the used action \”wp\”


r-a-y
Keymaster

@r-a-y

Quoted from the WP codex:

wp:

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: an array with a reference to the global $wp object.

Action priority level: (again from the codex)

1. plugins_loaded

2. sanitize_comment_cookies

3. setup_theme

4. auth_cookie_malformed

5. auth_cookie_valid

6. set_current_user

7. init

8. widgets_init

9. parse_request

10. send_headers

11. pre_get_posts

12. posts_selection

13. wp

14. template_redirect

15. get_header

16. wp_head

17. wp_print_styles

18. wp_print_scripts

19. loop_start

20. loop_end

21. get_sidebar

22. wp_meta

23. get_footer

24. wp_footer

Skip to toolbar