Skip to content

Instantly share code, notes, and snippets.

@macro64
macro64 / fd-clear-elementor-cache.php
Created February 14, 2022 14:14 — forked from heyfletch/fd-clear-elementor-cache.php
Clear Elementor Cache After a WP Migrate DB Pro Migration - Must Use Plugin (mu-plugins)
<?php
/*
Plugin Name: FD Clear Elementor Cache After WP Migrate DB Migration
Plugin URI: https://gist.github.com/heyfletch/769c64ad1fab8679032b076433afafd1
Description: Deletes CSS in uploads/elementor/css, which auto-regenerates on pageload. This clears the cache locally and remotely. Must-use plugin (mu-plugin).
Author: Fletcher Digital
Version: 0.1.1
Author URI: https://fletcherdigital.com
*/

Keybase proof

I hereby claim:

  • I am macro64 on github.
  • I am macro (https://keybase.io/macro) on keybase.
  • I have a public key whose fingerprint is A98D BE4F 5423 68A3 376A 30AF C2E7 A985 B135 5EDA

To claim this, I am signing this object:

@macro64
macro64 / dl-file.php
Created February 9, 2016 17:18 — forked from hakre/dl-file.php
Wordpress login to download uploaded files
<?php
/*
* dl-file.php
*
* Protect uploaded files with login.
*
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in
*
* @author hakre <http://hakre.wordpress.com/>
* @license GPL-3.0+