PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
spotlight-social-photo-feeds
/
modules
/
Dev
<?php namespace RebelCode\Spotlight\Instagram\Modules\Dev; use RebelCode\Spotlight\Instagram\Engine\Store\MediaFileStore; /** * Dev tool that deletes all the thumbnails. */ class DevDeleteThumbnails { /** @var MediaFileStore */ protected $fileStore; /** Constructor. */ public function __construct(MediaFileStore $fileStore) { $this->fileStore = $fileStore; } /** * @since 0.1 */ public function __invoke() { $nonce = filter_input(INPUT_POST, 'sli_delete_thumbnails'); if (!$nonce) { return; } if (!wp_verify_nonce($nonce, 'sli_delete_thumbnails')) { wp_die('You cannot do that!', 'Unauthorized', [ 'back_link' => true, ]); } $this->fileStore->deleteAll(); add_action('admin_notices', function () { echo '<div class="notice notice-success"><p>Deleted the thumbnails</p></div>'; }); } }
[+]
..
[-] DEVSurveyModule-xtacl.php
[edit]
[-] DevDeleteThumbnails.php
[edit]
[-] DevAccessTokenHandler.php
[edit]
[-] DevSimError.php
[edit]
[-] ServiceTree.php
[edit]
[-] DevCatalog.php
[edit]
[-] DevPage.php
[edit]
[-] DevResetDb.php
[edit]
[-] DevDeleteMedia.php
[edit]
[-] DevClearLog.php
[edit]
[-] DevModule.php
[edit]