Well, when exactly do you consider the page to be “starting to load”?
get_header() is typically the first function to fire as the html of a theme is starting to generated. It fires the get_header action. Numerous hooks fire prior to that, at different points, the very earliest being muplugins_loaded I believe.
wp_loaded, by the way, is not when the page has fully loaded but only after WordPress has loaded. There is a difference. A number of things happen before the page is created and sent to the browser.
Related Posts:
- WordPress and event-driven programming – what is it about?
- Receiving Stripe Webhooks on a wordpress website
- Change the footer text on the login page
- How to remove a metabox from menu editor page?
- Multiple wp_schedule_event cron jobs in plugin cause multi-execution
- Audio Player not loading when the content is loaded through Ajax, MediaElement.js no applied
- Hooking new functions to actions + passing parameters
- Find variables available at a given hook
- Passing data between two hooks in separate HTML requests
- Replace existing content from specific WooCommerce admin orders list column
- enqueue hover function
- How To Change The Html of Products filtration sidebar in Woocommerce?
- Insert all post IDs in new database table
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- action hook wp_head higher priority as all other plugins/hooks
- using add_action for a header hook that has an additional parameter
- How to call function at the bottom of post using plugin?
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- wp_loaded hook block script enquequing
- Remove an action hook within a Class
- How to pass arguments to add_action() or retrieve return value of called function?
- ajax, right way to do it and make it works?
- Sending data from custom inputs in WordPress comment form in the admin notification email
- Edit incorrect password message WordPress
- Reload part of checkout on changed shipping method
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Remove metabox from WordPress menu editor page?
- Remove a div from RSS feed
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- Set meta field to publish date + 2 weeks
- How to add an arrow to menu items has submenus
- WordPress Gravatar filter is removing my custom attributes
- Error in custom php function doesn’t exist
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- Don’t insert if permalink is the same?
- Adding widgets to my plugin page instead of WordPress dashboard
- Modify custom field input data before creating a new post
- how to make custom ajax handler?
- Are all hooks/functions tied to Kses meant for sanitization?
- Why does wp_head hook my functions to the beginning of my source code?
- Pass argument to event hook
- How to remove woocommerce_breadcrumb() from do_action( ‘woocommerce_before_main_content’ ); [closed]
- Omit custom post type from wp-sitemap.xml based on meta key using wp_sitemaps_posts_query_args
- How to remove the message ‘We could not find any results for your search’ without changing template files and without adding posts/pages?
- Get access to variable from previous pageview, excluding ajax-calls
- How to catch wordpress post ID when it’s published
- Why does the post_type_link hook everything twice?
- How to have different site identity logos on each page on Astra Theme [closed]
- How can I hook into the wp_mail function used by BackWPup?
- Send notification email to admin for every new post published
- Adding function to child theme’s function.php
- Comapare get_user_meta value
- Add a custom class to the body tag using custom fields
- Why doesn’t global $wp_query not get hooked?
- Creating customized php files in theme folder
- How to pass hook variable to function?
- save_post trigerred twice
- How to sort WooCommerce products page by latest in-stock items first?
- Replace a single variable with add_filter
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- How do I add a function to parent theme
- Prevent header and footer from loading on specific pages with template or plugin
- Contain multiple page templates in one PHP custom template file in WordPress?
- Show full post instead of excerpt
- Use wp_head hook on template page
- Adding custom field to product category and show it to shop/category shop page
- Trouble Accessing Gravity Forms API (GFAPI)
- How to edit post meta data before publishing the post it self wordpress?
- Fatal error: Uncaught Error: Class ‘WP_Block_Styles_Registry’
- Custom meta box is not displaying value showing tag as empty
- using filter and hook inside class
- Get original value in save_post action hooka
- get Woocommerce product format json for WP_Query
- Register/enqueue scripts only on certain admin pages
- How do I get the value of a current user’s custom field?
- Is there an option to execute javascript file only on plugin activation
- How do I remove an action hook inside a class that is called by another class?
- Need to forward Data from WooCommerce Webhook sent to same site WordPress REST API custom endpoint
- Help hooking into user_register
- add_filter() inside another add_filter()
- Hook into all password resets in WordPress and get password before hashing?
- Getting page / post URL on publish and / or update
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- Why transition_post_type hook is called twice for the same post?
- How can I move the posted-on date above the post and below the entry-header?
- Post formating on Home page
- WordPress HTML Helper
- calling a function from a class in your template
- Cannot modify header information – headers already sent
- Change Checkout “Place Order” text if cart has a specific product
- Send a custom notification to customer on WooCommerce cancelled order status
- Add/alter image attribute before render
- transition_post_status hook, works – but not if the post is new
- php was updated – critical error [closed]
- Facing Problem While Running WordPress Hook For Archive, Categories, Author, Date Pages Only
- Woocommerce – add tracking code to another email template
- how to append ACF field data using one of the following filter/ hooks
- Add Imports to Existing WordPress Import Map