wppaste
WordPress

do_action( 'wp_load_speculation_rules', WP_Speculation_Rules $speculation_rules )

Since
6.8.0
Fires when speculation rules data is loaded, allowing to amend the rules.

Compatibility

WordPress
since 6.8.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in 4 of the 5 tracked releases, added in 6.8.0.

Parameters

$speculation_rulesWP_Speculation_Rules
Object representing the speculation rules to use.

Where this hook fires · 1

  • wp-includes/speculative-loading.php:317wp_get_speculation_rules()

Source code

	 * Fires when speculation rules data is loaded, allowing to amend the rules.	 *	 * @since 6.8.0	 *	 * @param WP_Speculation_Rules $speculation_rules Object representing the speculation rules to use.	 */	do_action( 'wp_load_speculation_rules', $speculation_rules ); 	return $speculation_rules;} /** * Prints the speculation rules.

Changelog

Introduced in 6.8.0. Unchanged from 6.8.8 through 7.1.0.

  1. 6.8.8
  2. 6.9.7
  3. 7.0.4
  4. 7.1.0

Signature, return type and hooks compared across 4 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.