first commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* The admin-specific functionality of the module.
|
||||
*
|
||||
* @link https://codesupply.co
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @package Powerkit
|
||||
* @subpackage Modules/Admin
|
||||
*/
|
||||
|
||||
/**
|
||||
* The admin-specific functionality of the module.
|
||||
*/
|
||||
class Powerkit_Twitter_Admin extends Powerkit_Module_Admin {
|
||||
|
||||
/**
|
||||
* Initialize
|
||||
*/
|
||||
public function initialize() {
|
||||
add_filter( 'powerkit_reset_cache', array( $this, 'register_reset_cache' ) );
|
||||
add_filter( 'powerkit_ajax_reset_cache', array( $this, 'register_reset_cache' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Register Reset Cache
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @param array $list Change list reset cache.
|
||||
* @access private
|
||||
*/
|
||||
public function register_reset_cache( $list ) {
|
||||
$slug = powerkit_get_page_slug( $this->slug );
|
||||
|
||||
$list[ $slug ] = array(
|
||||
'powerkit_twitter_data',
|
||||
'powerkit_twitter_block_cache',
|
||||
'powerkit_twitter_shortcode_cache',
|
||||
'powerkit_twitter_widget_cache',
|
||||
);
|
||||
|
||||
return $list;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user