the current context.
*/
function wp_get_speculation_rules(): ?WP_Speculation_Rules {
$configuration = wp_get_speculation_rules_configuration();
if ( null === $configuration ) {
return null;
}
$mode = $configuration['mode'];
$eagerness = $configuration['eagerness'];
$prefixer = new WP_URL_Pattern_Prefixer();
$base_href_exclude_paths = array(
$prefixer->prefix_path_pattern( '/wp-*.php', 'site' ),
$prefixer->prefix_path_pattern( '/wp-admin/*', 'site' ),
$prefixer->prefix_path_pattern( '/*', 'uploads' ),
$prefixer->prefix_path_pattern( '/*', 'content' ),
$prefixer->prefix_path_pattern( '/*', 'plugins' ),
$prefixer->prefix_path_pattern( '/*', 'template' ),
$prefixer->prefix_path_pattern( '/*', 'stylesheet' ),
);
/*
* If pretty permalinks are enabled, exclude any URLs with query parameters.
* Otherwise, exclude specifically the URLs with a `_wpnonce` query parameter or any other query parameter
* containing the word `nonce`.
*/
if ( get_option( 'permalink_structure' ) ) {
$base_href_exclude_paths[] = $prefixer->prefix_path_pattern( '/*\\?(.+)', 'home' );
} else {
$base_href_exclude_paths[] = $prefixer->prefix_path_pattern( '/*\\?*(^|&)*nonce*=*', 'home' );
}
/**
* Filters the paths for which speculative loading should be disabled.
*
* All paths should start in a forward slash, relative to the root document. The `*` can be used as a wildcard.
* If the WordPress site is in a subdirectory, the exclude paths will automatically be prefixed as necessary.
*
* Note that WordPress always excludes certain path patterns such as `/wp-login.php` and `/wp-admin/*`, and those
* cannot be modified using the filter.
*
* @since 6.8.0
*
* @param string[] $href_exclude_paths Additional path patterns to disable speculative loading for.
* @param string $mode Mode used to apply speculative loading. Either 'prefetch' or 'prerender'.
*/
$href_exclude_paths = (array) apply_filters( 'wp_speculation_rules_href_exclude_paths', array(), $mode );
// Ensure that:
// 1. There are no duplicates.
// 2. The base paths cannot be removed.
// 3. The array has sequential keys (i.e. array_is_list()).
$href_exclude_paths = array_values(
array_unique(
array_merge(
$base_href_exclude_paths,
array_map(
static function ( string $href_exclude_path ) use ( $prefixer ): string {
return $prefixer->prefix_path_pattern( $href_exclude_path );
},
$href_exclude_paths
)
)
)
);
$speculation_rules = new WP_Speculation_Rules();
$main_rule_conditions = array(
// Include any URLs within the same site.
array(
'href_matches' => $prefixer->prefix_path_pattern( '/*' ),
),
// Except for excluded paths.
array(
'not' => array(
'href_matches' => $href_exclude_paths,
),
),
// Also exclude rel=nofollow links, as certain plugins use that on their links that perform an action.
array(
'not' => array(
'selector_matches' => 'a[rel~="nofollow"]',
),
),
// Also exclude links that are explicitly marked to opt out, either directly or via a parent element.
array(
'not' => array(
'selector_matches' => ".no-{$mode}, .no-{$mode} a",
),
),
);
// If using 'prerender', also exclude links that opt out of 'prefetch' because it's part of 'prerender'.
if ( 'prerender' === $mode ) {
$main_rule_conditions[] = array(
'not' => array(
'selector_matches' => '.no-prefetch, .no-prefetch a',
),
);
}
$speculation_rules->add_rule(
$mode,
'main',
array(
'source' => 'document',
'where' => array(
'and' => $main_rule_conditions,
),
'eagerness' => $eagerness,
)
);
/**
* 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.
*
* For browsers that do not support speculation rules yet, the `script[type="speculationrules"]` tag will be ignored.
*
* @since 6.8.0
* @access private
*/
function wp_print_speculation_rules(): void {
$speculation_rules = wp_get_speculation_rules();
if ( null === $speculation_rules ) {
return;
}
wp_print_inline_script_tag(
(string) wp_json_encode(
$speculation_rules
),
array( 'type' => 'speculationrules' )
);
}
نرخ دلار امروز چهارشنبه ساعت 14:01:03 برابر با 938,800 نه صد و سی و هشت هزار و هشت صد ریال قیمت یورو 1,093,700 یک میلیون و نود و سه هزار و هفتصد ریال قیمت پوند 1,267,900 یک میلیون و دویست و شصت و هفت هزار و نه صد ریال نرخ دلار
قیمت دلار امروز ۱۴۰۴/۵/۲۹ ساعت 11:55:42 برابر با 936,250 نه صد و سی و شش هزار و دویست و پنجاه ریال قیمت یورو 1,090,800 یک میلیون و نود هزار و هشت صد ریال قیمت پوند 1,265,000 یک میلیون و دویست و شصت و پنج هزار ریال قیمت دلار
قیمت زنده دلار 933,600 ریال امروز بیست و هشت مرداد هزار و چهارصد و چهار ساعت 17:31:42 قیمت یورو 1,089,800 یک میلیون و هشتاد و نه هزار و هشت صد ریال قیمت پوند 1,260,900 یک میلیون و دویست و شصت هزار و نه صد ریال قیمت آنلاین طلا
قیمت لحظه ای دلار امروز 2025/08/19 ساعت 16:05:37 برابر با 935,000 نه صد و سی و پنج هزار ریال قیمت یورو 1,092,600 یک میلیون و نود و دو هزار و ششصد ریال قیمت پوند 1,264,000 یک میلیون و دویست و شصت و چهار هزار ریال قیمت طلا
نرخ دلار امروز سه شنبه ساعت 14:04:14 برابر با 935,500 نه صد و سی و پنج هزار و پانصد ریال قیمت یورو 1,093,500 یک میلیون و نود و سه هزار و پانصد ریال قیمت پوند 1,265,300 یک میلیون و دویست و شصت و پنج هزار و سیصد ریال نرخ دلار
قیمت دلار امروز ۱۴۰۴/۵/۲۸ ساعت 11:57:00 برابر با 937,350 نه صد و سی و هفت هزار و سیصد و پنجاه ریال قیمت یورو 1,095,600 یک میلیون و نود و پنج هزار و ششصد ریال قیمت پوند 1,267,800 یک میلیون و دویست و شصت و هفت هزار و هشت صد ریال قیمت دلار
قیمت زنده دلار 936,800 ریال امروز بیست و هفت مرداد هزار و چهارصد و چهار ساعت 17:31:32 قیمت یورو 1,093,800 یک میلیون و نود و سه هزار و هشت صد ریال قیمت پوند 1,268,300 یک میلیون و دویست و شصت و هشت هزار و سیصد ریال قیمت آنلاین طلا
قیمت لحظه ای دلار امروز 2025/08/18 ساعت 16:05:16 برابر با 937,500 نه صد و سی و هفت هزار و پانصد ریال قیمت یورو 1,094,700 یک میلیون و نود و چهار هزار و هفتصد ریال قیمت پوند 1,269,200 یک میلیون و دویست و شصت و نه هزار و دویست ریال قیمت طلا
نرخ دلار امروز دوشنبه ساعت 14:00:20 برابر با 936,300 نه صد و سی و شش هزار و سیصد ریال قیمت یورو 1,093,500 یک میلیون و نود و سه هزار و پانصد ریال قیمت پوند 1,267,700 یک میلیون و دویست و شصت و هفت هزار و هفتصد ریال نرخ دلار
قیمت دلار امروز ۱۴۰۴/۵/۲۷ ساعت 11:55:56 برابر با 937,300 نه صد و سی و هفت هزار و سیصد ریال قیمت یورو 1,095,400 یک میلیون و نود و پنج هزار و چهار صد ریال قیمت پوند 1,269,400 یک میلیون و دویست و شصت و نه هزار و چهار صد ریال قیمت دلار