[WordPress] 外掛分享: Simple Ticker

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

內容簡介

Simple Ticker 外掛可在網站上顯示跑馬燈效果,支持顯示自訂的跑馬燈內容、置頂文章及 WooCommerce 的促銷資訊,提升網站的互動性與資訊傳遞效率。

【主要功能】
• 顯示三個自訂跑馬燈
• 支援置頂文章顯示
• 顯示 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
Mastodon