PluginProbe
Powerkit – Supercharge your WordPress Site / trunk
Powerkit – Supercharge your WordPress Site vtrunk
3.1.1 3.1.0 3.0.9 3.0.8 trunk 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 All 87 releases
powerkit / modules / twitter / admin / class-powerkit-twitter-admin.php

class-powerkit-twitter-admin.php in Powerkit – Supercharge your WordPress Site trunk, at modules/twitter/admin/class-powerkit-twitter-admin.php

51 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The admin-specific functionality of the module.
4 *
5 * @link https://codesupply.co
6 * @since 1.0.0
7 *
8 * @package Powerkit
9 * @subpackage Modules/Admin
10 */
11
12 // Exit if accessed directly.
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 /**
18 * The admin-specific functionality of the module.
19 */
20 class Powerkit_Twitter_Admin extends Powerkit_Module_Admin {
21
22 /**
23 * Initialize
24 */
25 public function initialize() {
26 add_filter( 'powerkit_reset_cache', array( $this, 'register_reset_cache' ) );
27 add_filter( 'powerkit_ajax_reset_cache', array( $this, 'register_reset_cache' ) );
28 }
29
30 /**
31 * Register Reset Cache
32 *
33 * @since 1.0.0
34 * @param array $list Change list reset cache.
35 * @access private
36 */
37 public function register_reset_cache( $list ) {
38 $slug = powerkit_get_page_slug( $this->slug );
39
40 $list[ $slug ] = array(
41 'powerkit_twitter_data',
42 'powerkit_twitter_block_cache',
43 'powerkit_twitter_shortcode_cache',
44 'powerkit_twitter_widget_cache',
45 );
46
47 return $list;
48 }
49
50 }
51