??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/monicslandscape.co.uk/wp-content/plugins/surerank/inc/functions/requests.php
⬅ Kembali
<?php
/**
* Requests class.
*
* Handles HTTP requests for SEO analysis.
*
* @package SureRank\Inc\Analyzer
*/
namespace SureRank\Inc\Functions;
use SureRank\Inc\Traits\Get_Instance;
use WP_Error;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Class Requests
*
* Handles HTTP requests for SEO analysis.
*/
class Requests {
use Get_Instance;
/**
* Get the status code of a URL.
*
* @param string $url The URL to check. It will behave like wp_safe_remote_head.
* @param array<string, mixed> $args The arguments of the request.
* @return array<string, mixed>|WP_Error
*/
public static function head( $url, $args = [] ) {
return wp_safe_remote_head(
$url,
array_merge(
[
'timeout' => 10, // phpcs:ignore WordPressVIPMinimum.Performance.RemoteRequestTimeout.timeout_timeout
'redirection' => 0,
],
$args
)
);
}
/**
* Get the body of a URL. It will behave like wp_safe_remote_get.
*
* @param string $url The URL to get the body of.
* @param array<string, mixed> $args The arguments of the request.
* @return array<string, mixed>|WP_Error
*/
public static function get( $url, $args = [] ) {
return wp_safe_remote_get(
$url,
$args
);
}
/**
* Post to a URL. It will behave like wp_safe_remote_post.
*
* @param string $url The URL to post to.
* @param array<string, mixed> $args The arguments of the post.
* @return array<string, mixed>|WP_Error
*/
public static function post( $url, $args ) {
return wp_safe_remote_post(
$url,
$args
);
}
/**
* Request to a URL. It will behave like wp_safe_remote_request.
*
* @param string $url The URL to request to.
* @param array<string, mixed> $args The arguments of the request.
* @return array<string, mixed>|WP_Error
*/
public static function request( $url, $args ) {
return wp_safe_remote_request(
$url,
$args
);
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
🐘 api-utils.php
php
6.6 KB
2026-06-04 12:50
🐘 cache.php
php
18.6 KB
2026-05-20 12:46
🐘 compat.php
php
7.5 KB
2026-04-27 18:58
🐘 cron.php
php
3.3 KB
2025-08-18 15:48
🐘 defaults.php
php
14.2 KB
2026-06-17 16:29
🐘 get.php
php
6.8 KB
2026-06-17 16:29
🐘 helper.php
php
22.1 KB
2026-06-04 12:50
🐘 modified-date-lock.php
php
2.5 KB
2026-06-04 12:50
🐘 requests.php
php
1.9 KB
2025-06-27 15:25
🐘 rest-observation.php
php
2.8 KB
2026-04-27 18:58
🐘 sanitize.php
php
5 KB
2026-06-17 16:29
🐘 send-json.php
php
1.3 KB
2025-07-21 08:58
🐘 settings.php
php
24.2 KB
2026-06-17 16:29
🐘 update.php
php
4.2 KB
2026-06-17 16:29
🐘 utils.php
php
2.5 KB
2026-05-20 12:46
🐘 validate.php
php
2.3 KB
2025-07-21 08:58
🐘 variables.php
php
3.7 KB
2026-06-17 16:29