0
我想找到一種方法來最好地隱藏或刪除出現在我的行操作中的「從頁面緩存中清除」選項,在特定的帖子/網頁等。有沒有人知道一個方法來實現這個目標?Wordpress W3C總緩存 - 在行動中隱藏「從頁面緩存中清除」
從我注意到在TotalCacheAdmin.php文件生成的代碼:
/**
* post_row_actions filter
*
* @param array $actions
* @param object $post
* @return array
*/
function post_row_actions($actions, $post) {
$actions = array_merge($actions, array(
'pgcache_purge' => sprintf('<a href="%s">Purge from Page Cache</a>', wp_nonce_url(sprintf('admin.php?page=w3tc_general&w3tc_pgcache_purge_post&post_id=%d', $post->ID), 'w3tc'))
));
return $actions;
}
一些建議將高度讚賞 - 非常感謝你。