Wordpress W3C 总缓存 - 在行操作中隐藏“从页面缓存中清除”

问题描述 投票:0回答:1

我想找到一种方法来最好地隐藏或删除“从页面缓存中清除”选项,一旦我将鼠标悬停在特定的帖子/页面等上,该选项就会出现在我的行操作中。有人知道如何完成此操作吗?

据我所知,代码是在 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;
}

一些建议将不胜感激 - 非常感谢。

php wordpress
1个回答
0
投票

通过添加 display:none 选项解决了这个问题 - 这可以解决问题

© www.soinside.com 2019 - 2024. All rights reserved.