首页 WordPress函数大全 is_allowed_http_origin()

is_allowed_http_origin()

2020-05-02 / 4564阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

is_allowed_http_origin( null|string $origin = null )

Determines if the HTTP origin is an authorized>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

参数

$origin

(null|string)
(Optional)
Origin URL. If not provided, the value of get_http_origin() is used.

Default value: null

返回

(string) Origin URL if allowed, empty string if not.

大家谈论
    我的见解