Ref: https://www.varnish-cache.org/docs/3.0/tutorial/esi.html http://www.w3.org/TR/esi-lang
In the template add something like:
<nocache callback="time" />
<?php | |
class React_YOLO { | |
public function __construct() { | |
add_action( 'admin_menu', array( $this, 'admin_menu' ) ); | |
} | |
public function admin_menu() { | |
add_menu_page( 'React', 'React', 'edit_posts', 'react', array( $this, 'page' ) ); | |
} |
<?php | |
/** | |
* Some cool thing that does various little SVN tasks. | |
* Requires the PECL svn package to be installed! | |
* | |
* @author Lowgain / BNOTIONS | |
*/ | |
// Define some cool parameters here | |
define('USERNAME', ''); |
<?php | |
/* | |
Plugin Name: WP Kissmetrics | |
Description: Record events using Kissmetrics' PHP API. Intended to be used by developers only. | |
Author: evansolomon | |
Version: 1.0 | |
*/ | |
/* Forked from https://github.com/kissmetrics/KISSmetrics/blob/master/km.php */ |
Key: | |
# Message Type | |
Custom Message (English) | |
--------- | |
# Sender's message was sent successfully | |
Your message was sent successfully. Thank you! | |
# Sender's message was failed to send |
<?php | |
/* | |
Plugin Name: Moderation Buddy | |
Description: A friendly assistent to make sure you don't get behind on your comment moderation tasks. | |
Version: 0.1 | |
Author: Mark Jaquith | |
Author URI: http://coveredwebservices.com/ | |
*/ | |
class CWS_Moderation_Buddy_Plugin { |
<?php | |
function edd_change_downloads_upload_dir() { | |
global $pagenow; | |
if ( ! empty( $_POST['post_id'] ) && ( 'async-upload.php' == $pagenow || 'media-upload.php' == $pagenow ) ) { | |
if ( 'download' == get_post_type( $_REQUEST['post_id'] ) ) { | |
$wp_upload_dir = wp_upload_dir(); | |
$upload_path = $wp_upload_dir['basedir'] . '/edd' . $wp_upload_dir['subdir']; | |
if (wp_mkdir_p($upload_path) && !file_exists($upload_path.'/.htaccess')) { |
.gist { | |
color: #e4322e; | |
} | |
.gistdiv { | |
padding: 0; | |
margin: 0; | |
} | |
.gist .gist-file { |
<?php | |
// check for a term and insert it if it doesn't exist | |
if (!get_term_by('slug', $term_slug, $taxonomy)) { | |
wp_insert_term(__($term_name, 'localization-key'), $taxonomy, array( | |
'slug' => $term_slug | |
)); | |
} |
<?php | |
/* | |
Plugin Name: Secret Place | |
Plugin URI: http://github.com/getsource | |
Description: Make your dashboard your secret place. | |
Author: Mike Schroder and Jason Cosper | |
Version: 0.1 | |
Author URI: http://www.getsource.net/ | |
*/ |
Ref: https://www.varnish-cache.org/docs/3.0/tutorial/esi.html http://www.w3.org/TR/esi-lang
In the template add something like:
<nocache callback="time" />