-
john-smith 發表了更新
如何修改
yith_wcan_terms_on_first_loading
在 WordPress 倉庫的免費 YITH 外掛中使用過濾鉤來更改其值?我嘗試將值設定為
20
使用以下代碼:add_filter( 'yith_wcan_terms_on_first_loading', function( $number ) { $number = 20; return $number; }, 10, 1 );
我也嘗試在
啟動
和plugins_loaded
動作鉤子,但似乎還是無法運作。問題可能出在哪裡,我該如何確保過濾器能如預期般運作?