First create global variables (in functions.php or as a mu-plugin):
<?php
/*
* CUSTOM GLOBAL VARIABLES
*/
function wtnerd_global_vars() {
<?php | |
/* | |
* Functionality to set up custom shortcode correctly. | |
* | |
* This function is attached to the 'the_content' filter hook. | |
*/ | |
add_filter( 'the_content', 'run_bbcodes', 7 ); | |
function run_bbcodes( $content ) { |
<?php | |
/** | |
* Plugin Name: Snippets Shortcode | |
* Plugin URI: http://wordpress.stackexchange.com/q/116044/12615 | |
* Description: Add code snippets as a Custom Post Type. Display in regular posts and pages using a Shortcode. Rendered with Google Prettify in frontend. | |
* Version: 1.0 | |
* Author: Rodolfo Buaiz | |
* Author URI: http://brasofilo.com | |
* License: GPLv2 or later | |
* |
First create global variables (in functions.php or as a mu-plugin):
<?php
/*
* CUSTOM GLOBAL VARIABLES
*/
function wtnerd_global_vars() {
<?php | |
// Remove Canonical Link Added By Yoast WordPress SEO Plugin | |
function at_remove_dup_canonical_link() { | |
return false; | |
} | |
add_filter( 'wpseo_canonical', 'at_remove_dup_canonical_link' ); | |
function wpseo_attachment_canonical_parent( $canonical ) { |
/* | |
* @fileoverview Program to free the content in kindle books as plain HTML. | |
* | |
* This is largely based on reverse engineering kindle cloud app | |
* (https://read.amazon.com) to read book data from webSQL. | |
* | |
* Access to kindle library is required to download this book. | |
*/ | |
// The Kindle Compression Module copied from http://read.amazon.com application |
<?php | |
/* | |
* DESCRIPTION: All WordPress email notifications are sent from | |
* wordpress@yourdomain.com with the sender's name as "WordPress". | |
* Any one of these functions should help you change that. | |
* | |
* Relevant WordPress core file is /wp-includes/pluggable.php | |
*/ |
upstream phpfpm { | |
server unix:/var/run/php5-fpm.sock; | |
} | |
upstream hhvm { | |
server unix:/var/run/hhvm/hhvm.sock; | |
} | |
# SSL | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
PhoneGap by Adobe (PhoneGap Build)