تابع ووکامرسی rest_parse_request_arg پردازش مسیر آدرس داده شده بر اساس آرگومان

تابع ووکامرسی rest_parse_request_arg – پردازش مسیر آدرس داده شده بر اساس آرگومان
Syntax – سینتکس
rest_parse_request_arg( (mixed) $value, (WP_REST_Request) $request, (string) $param );
Parameters – پارامتر ها (3)
- 1- $value (mixed)
- 2- $request (WP_REST_Request)
- 3- $param (string)
Usage – نحوه استفاده
if ( !function_exists( 'rest_parse_request_arg' ) ) {
require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/vendor/wp-rest-functions.php';
}
// The value.
$value = null;
// The request.
$request = null;
// The param.
$param = '';
// NOTICE! Understand what this does before running.
$result = rest_parse_request_arg($value, $request, $param);
Defined – محل تعریف
/includes/vendor/wp-rest-functions.php
function rest_parse_request_arg( $value, $request, $param ) {
$is_valid = rest_validate_request_arg( $value, $request, $param );
if ( is_wp_error( $is_valid ) ) {
return $is_valid;
}
$value = rest_sanitize_request_arg( $value, $request, $param );
return $value;
}
versions – نسخه ها
از نسخه : 3.0.2
نسخه فعلی : 3.0.6
دیگر نسخه ها : 3.0.6 , 3.0.5 , 3.0.4 , 3.0.3 , 3.0.2
ارسال نظر