plugin-icon

Include URL

لصاحبه Samuel Behan·
include
url
Include URL allows to include any URL in posts or pages.
تقييمات
5
آخر تحديث
November 2, 2022
النسخة
0.3.5
التنصيبات النشطة
100

Features

Include URL is a WordPress plugin for seamless inclusion of data from remote urls, optionaly passing GET parameters to it..

  • Get remote url content
  • Pass given GET params to url
  • Cache fetched content localy in WordPress DB (for extremely slow sources)

Usage

[include-url href="<URL>" params="param1,param2,param3..." timeout="seconds" cache="seconds" allow-file="1" allow-shortcode="1"]
  • href – url starting with http:// or https:// (required)
  • params – list of comma separated GET parameters, that should be passed to include url
  • timeout – request timeout in seconds
  • cache – cache request data localy in wordpress database (default = 0 seconds / disabled)
  • allow-file – allow file:// urls in href (default = 0 / disabled, 1 = prepend file with document root, 2 = use absolute path)
  • allow-other – allow any other protocol supported by cURL
  • allow-shortcode – allow and process wordpress shortcodes in included content

Examples

  • Search frontend page for SOLR

    [include-url href=”http://localhost:8080/solr/core1/select?wt=xslt&wt=results.xslt” params=”q,fq” cache=”1800″]

This requests data from local SOLR instance, that will return search results formated as HTML (ie. table) via its XSLT handler, optionally passing q (query) and fq (filter) params to it. Data will be cached for 1800 seconds in WordPress database.

  • Read file from document_root

    [include-url href=”file://robots.txt” allow-file=”1″]

  • Read file specified by absolute path

    [include-url href=”file:///var/www/html/robots.txt” allow-file=”2″]

مجانيعلى خطة Creator
إذا قمت بالتثبيت، فإنك توافق على شروط خدمة ووردبريس.كوم وشروط إضافات الأطراف الثالثة.
التنصيبات النشطة
100
تم اختباره حتى
6.1.7
تتوافر هذه الإضافة للتنزيل لتُستخدم في عملية التثبيت المستضافة ذاتيًا على ووردبريس لديك.