[WordPress] 外掛分享: Custom Location Weather

首頁外掛目錄 › Custom Location Weather
WordPress 外掛 Custom Location Weather 的封面圖片
全新外掛
安裝啟用
尚無評分
351 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.0 上架:2025-03-31

內容簡介

**總結:**
Custom Location Weather Plugin 是一個多功能的 WordPress 外掛,可以顯示全球任何位置的即時天氣信息和當地時間。非常適合旅遊網站、本地企業,或任何需要顯示天氣信息的網站。

**問題與答案:**

1. 這個外掛的主要特點有哪些?
- 即時天氣資料顯示,使用 OpenWeatherMap API。
- 可自訂位置設定。
- 溫度單位切換(攝氏/華氏)。
- 自訂天氣圖示。
- 回應式設計。
- 通過短代碼輕鬆實現。

2. 如何使用此外掛?
- 只需使用短代碼 [custom_weather_time],即可在任何文章或頁面上顯示天氣信息。

3. 天氣顯示包括哪些項目?
- 當前溫度
- 天氣情況
- 濕度水平
- 風速
- 當前日期和時間
- 溫度單位切換按鈕

4. 這個外掛的 API 整合是什麼?
- 提供者: OpenWeatherMap
- 端點: api.openweathermap.org/data/2.5/weather
- 方法: GET
- 緩存持續時間: 30 分鐘

5. 這個外掛如何確保安全性?
- 防止直接文件訪問
- 數據消毒
- XSS 防護
- CSRF 保護
- 安全的 API 金鑰儲存

6. 如果需要支援,應該怎麼辦?
- 請發送郵件至 [email protected],或訪問 https://paulanunobi.com/custom-location-weather 上的支援頁面。

7. 未來更新將包括哪些功能?
- 多個位置支援
- 擴展預報顯示
- 額外的自訂選項
- 小工具實現
- 天氣警報整合

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Custom Location Weather」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Custom Location Weather Plugin is a versatile WordPress plugin that displays real-time weather information and local time for any location worldwide. Perfect for travel websites, local businesses, or any site needing to display weather information.
Key Features

Real-time weather data display using OpenWeatherMap API
Customizable location settings
Temperature unit toggle (Celsius/Fahrenheit)
Custom weather icons
Responsive design
Cached data to minimize API calls
Easy implementation via shortcode

Basic Usage
Simply use the shortcode [custom_weather_time] to display weather information on any post or page.
Display Options
The weather display includes:
* Current temperature
* Weather condition
* Humidity level
* Wind speed
* Current date and time
* Temperature unit toggle button
Technical Details
File Structure
`

custom-location-weather/
├── custom-location-weather.php (Main plugin file)
├── templates/
│ ├── admin-settings.php (Admin interface template)
│ └── weather-display.php (Frontend display template)
├── assets/
│ ├── css/
│ │ └── style.css (Plugin styles)
│ ├── js/
│ │ └── script.js (Frontend functionality)
│ └── images/
│ └── [weather icons]
`
API Integration

Provider: OpenWeatherMap
Endpoint: api.openweathermap.org/data/2.5/weather
Method: GET
Cache Duration: 30 minutes

Security

Direct file access prevention
Data sanitization
XSS prevention
CSRF protection
Secure API key storage

Support
For support queries, please email [email protected] or visit our support page at https://paulanunobi.com/custom-location-weather.
Future Updates
Planned features for upcoming releases:
* Multiple location support
* Extended forecast display
* Additional customization options
* Widget implementation
* Weather alerts integration

延伸相關外掛

文章
Filter
Apply Filters
Mastodon