PluginProbe ʕ •ᴥ•ʔ
WP Fastest Cache – WordPress Cache Plugin / 0.8.9.9
WP Fastest Cache – WordPress Cache Plugin v0.8.9.9
1.4.9 1.4.8 trunk 0.8.6.6 0.8.6.7 0.8.6.8 0.8.6.9 0.8.7.0 0.8.7.1 0.8.7.2 0.8.7.3 0.8.7.4 0.8.7.5 0.8.7.6 0.8.7.7 0.8.7.8 0.8.7.9 0.8.8.0 0.8.8.1 0.8.8.2 0.8.8.3 0.8.8.4 0.8.8.5 0.8.8.6 0.8.8.7 0.8.8.8 0.8.8.9 0.8.9.0 0.8.9.1 0.8.9.2 0.8.9.3 0.8.9.4 0.8.9.5 0.8.9.6 0.8.9.7 0.8.9.8 0.8.9.9 0.9.0.0 0.9.0.1 0.9.0.2 0.9.0.3 0.9.0.4 0.9.0.5 0.9.0.6 0.9.0.7 0.9.0.8 0.9.0.9 0.9.1.0 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 0.9.1.5 0.9.1.6 0.9.1.7 0.9.1.8 0.9.1.9 0.9.2 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 0.9.8 0.9.9 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7
wp-fastest-cache / inc / column.php
wp-fastest-cache / inc Last commit date
admin-toolbar.php 6 years ago admin.php 6 years ago cache.php 6 years ago cdn.php 7 years ago cli.php 6 years ago column.php 7 years ago css-utilities.php 6 years ago index.html 11 years ago js-utilities.php 6 years ago nonce-timeout.php 8 years ago preload.php 6 years ago wp-polls.php 9 years ago
column.php
37 lines
1 <?php
2 class WpFastestCacheColumn{
3 public function __construct(){}
4
5 public function add(){
6 add_filter('manage_posts_columns', array($this, 'wpfc_clear_column_head'));
7 add_action('manage_posts_custom_column', array($this, 'wpfc_clear_column_content'), 10, 2);
8 add_filter('manage_pages_columns', array($this, 'wpfc_clear_column_head'));
9 add_action('manage_pages_custom_column', array($this, 'wpfc_clear_column_content'), 10, 2);
10 add_action('admin_enqueue_scripts', array($this, 'load_js'));
11 add_action('wp_ajax_wpfc_clear_cache_column', array($this, "clear_cache_column"));
12 }
13
14 public function clear_cache_column(){
15 $GLOBALS["wp_fastest_cache"]->singleDeleteCache(false, esc_sql($_GET["id"]));
16
17 die(json_encode(array("success" => true)));
18 }
19
20 public function load_js(){
21 wp_enqueue_script("wpfc-column", plugins_url("wp-fastest-cache/js/column.js"), array(), time(), true);
22 }
23
24 public function wpfc_clear_column_head($defaults) {
25 $defaults['wpfc_column_clear_cache'] = 'Cache';
26 return $defaults;
27 }
28
29 public function wpfc_clear_column_content($column_name, $post_ID) {
30 if($column_name == "wpfc_column_clear_cache"){
31 echo '<button wpfc-clear-column="'.$post_ID.'" class="button wpfc-clear-column-action">
32 <span>Clear</span>
33 </button>';
34 }
35 }
36 }
37 ?>