[WordPress] 外掛分享: Hello Dolly For Your Song

首頁外掛目錄 › Hello Dolly For Your Song
WordPress 外掛 Hello Dolly For Your Song 的封面圖片
60+
安裝啟用
尚無評分
196 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.0+ v0.20 上架:2013-05-03

內容簡介

這個簡單的外掛是 Matt Mullenweg 著名的 Hello Dolly 外掛的擴展版。每個人都對某首特定的歌曲有著特殊的情感。因此,Hello Dolly For Your Song 會在博客中展示您最喜愛的歌曲的歌詞。當然,它也可以用於任何文字。😉

功能

以 Gutenberg 區塊的形式在博客中顯示自定義文字的一行隨機數據
以小工具的形式在博客中顯示自定義文字的一行隨機數據
以短碼的形式在博客中顯示自定義文字的一行隨機數據
以模板標籤的形式在您的佈景主題中顯示自定義文字的一行隨機數據
在博客管理中顯示自定義文字的一行隨機數據
整合到 WordPress REST API
開發人員的鉤子
選項頁面,可定義自定義歌曲文字
網站健康度整合
隱藏選項
語言:英文、德文、西班牙文、法文、印尼文、俄文

相關連結

官方外掛頁面(德文)
為什麼我創建了這個外掛?(德文)
螢幕錄像展示幾乎所有功能(德文)
GitHub 上的原始碼

配置

在設定中維護您喜愛的歌詞。
就這樣!

Gutenberg 區塊類別

小工具

短碼

[hdfys]

模板標籤

hello_dolly_for_your_song()

取得函數

get_hello_dolly_for_your_song()

REST API 端點

http://youroblogdomain/wp-json/restful-hello-dolly-for-your-song/text

動作

hdfys_new_song
當在設定中維護了新的文字時,將觸發此動作。
您可以使用以下代碼。

function hdfys_do_anything() {

// Add your code to execute here

}
add_action( 'hdfys_new_song', 'hdfys_do_anything', 10, 3 );

過濾器

hdfys_output_filter
在輸出 Gutenberg 區塊、模板標籤和短碼之前,將應用過濾器。
您可以使用以下代碼。

function hdfys_output_manipulate( $output ) {

// Add your filter code here
// Example: $output=strtolower( $output );

return $output;
}
add_filter( 'hdfys_output_filter', 'hdfys_output_manipulate', 10, 1 );

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.20) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Hello Dolly For Your Song」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This simple plugin is an extended version of the famous hello dolly plugin by Matt Mullenweg. Every human being has a special relationship to a particular song. And because of that, Hello Dolly For Your Song brings the lyric of your favourite song in the blog. But of course it can be used for any text. 😉
Features

Display a random line of a custom text in your blog as gutenberg block
Display a random line of a custom text in your blog as widget
Display a random line of a custom text in your blog as shortcode
Display a random line of a custom text in your theme as template tag
Display a random line of a custom text in the blog administration
Integration into WordPress REST API
Hooks for Developers
Options Page to define a custom song text
Site Health Integration
Hidden Options
Languages: English, German, Spanish, French, Indonesian, Russian

Related Links

Official Plugin Page (German)
Why I have created this plugin? (German)
ScreenCast showing almost all features (German)
Source Code @ GitHub

Configuration

Maintain the songtext you love in the Settings.
That is all!

Gutenberg Block Category
Widgets
Shortcode
[hdfys]
Template Tag
hello_dolly_for_your_song()
Get Function
get_hello_dolly_for_your_song()
REST API Endpoint
http://yourblogdomain/wp-json/restful-hello-dolly-for-your-song/text
Actions
hdfys_new_song
This Action wil be fired, if a new text was maintained in the settings.
You can use the following code.
function hdfys_do_anything() {

// Add your code to execute here

}
add_action( 'hdfys_new_song', 'hdfys_do_anything', 10, 3 );

Filter
hdfys_output_filter
The filter will be applied before output of the gutenberg block, template tag and shortcode.
You can use the following code.
function hdfys_output_manipulate( $output ) {

// Add your filter code here
// Example: $output=strtolower( $output );

return $output;
}
add_filter( 'hdfys_output_filter', 'hdfys_output_manipulate', 10, 1 );

文章
Filter
Apply Filters
Mastodon