[WordPress] 外掛分享: Simple Ticker

首頁外掛目錄 › Simple Ticker
500+
安裝啟用
★★★★
4/5 分(4 則評價)
113 天前
最後更新
問題解決
WordPress 6.6+ PHP 8.0+ v3.11 上架:2016-07-30

內容簡介

顯示跑馬燈。

它可以顯示三個自訂的跑馬燈。
它可以將置頂文章顯示為跑馬燈。
它可以將 WooCommerce 的折扣銷售顯示為跑馬燈。
它支援小工具、簡碼和區塊的顯示方式。

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.11) 或搜尋安裝

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

原文外掛簡介

Displays the ticker.
It can display three own ticker.
It can view the Sticky Posts as ticker.
It can view the WooCommerce sale as ticker.
It supports the display of the widget and the short code and block.
Filter hooks
/** ==================================================
* Filter for Inner text.
* simple_ticker_1_inner_text
* simple_ticker_2_inner_text
* simple_ticker_3_inner_text
*
* @param $text1 Inner text.
* @param $post_id Post ID.
*
*/
add_filter(
'simple_ticker_1_inner_text',
function( $text1, $post_id ) {

if ( 3309 == $post_id ) {
$change = 'Test';
$changed = '' . esc_attr( $change ) . '';
$text1 = str_replace( $change, $changed, $text1 );
}

return $text1;
},
10,
2
);

延伸相關外掛

文章
Filter
Apply Filters
Mastodon