Skip to content

Instantly share code, notes, and snippets.

View n7studios's full-sized avatar

Tim Carr n7studios

View GitHub Profile
@n7studios
n7studios / wp-to-buffer-modify-excerpt.php
Last active June 17, 2019 11:27
WordPress to Buffer: Modify Excerpt in Status
<?php
/**
* Plugin Name: WP to Buffer: Modify Excerpt in Status
* Plugin URI: http://www.wpzinc.com/
* Version: 0.0.1
* Author: WP Zinc
* Author URI: http://www.wpzinc.com
* Description: Modify the {excerpt} output, immediately before it is sent to Buffer.
*/
@n7studios
n7studios / autoptimize-inline-js-minification-fault.php
Created May 16, 2016 12:49
Autoptimize Inline Javascript Minification Fault
<?php
/**
* Plugin Name: Autoptimize Inline JS Fault
* Plugin URI: http://www.n7studios.co.uk
* Description: Demonstrates a fault with Autoptimize where "Also aggregate inline JS" is enabled but not honoured.
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Version: 1.0.0
*/
<?php
/**
* Plugin Name: Page Generator Pro: Enable Meta Boxes
* Plugin URI: http://www.wpzinc.com/plugins/page-generator-pro
* Version: 1.0.0
* Author: WP Zinc
* Author URI: http://www.wpzinc.com
* Description: Demonstrates how to enable custom and/or third party plugin meta boxes on Page Generator Pro Groups. See: https://www.wpzinc.com/documentation/page-generator-pro/developers-enable-meta-boxes/
*/
@n7studios
n7studios / custom-fields-meta-keys.php
Created March 4, 2019 12:24
Custom Fields Meta Box: Define Meta Keys for Performance
<?php
/**
* Plugin Name: Custom Fields Meta Box: Define Meta Keys for Performance
* Plugin URI: http://www.wpzinc.com/
* Version: 0.0.1
* Author: WP Zinc
* Author URI: http://www.wpzinc.com
* Description: Explicitly define the Meta Keys to display in the Custom Fields > Add New Custom Field > Name <select> dropdown, to save WordPress performing a potentially expensive and slow query.
*/
@n7studios
n7studios / envira-gallery-single-lightbox.php
Created August 6, 2015 14:50
Envira Gallery - Single Lightbox for All Galleries
@n7studios
n7studios / page-generator-pro-tablepress.php
Created February 20, 2019 19:02
Page Generator Pro: TablePress Example Integration
<?php
/**
* Plugin Name: Page Generator Pro: TablePress Example Integration
* Plugin URI: http://www.wpzinc.com/plugins/page-generator-pro
* Version: 0.0.1
* Author: WP Zinc
* Author URI: http://www.wpzinc.com
* Description: Example integration of how keywords within a third party Plugin, that uses a shortcode within a Page Generator Pro 1.9.8+ Content Group can be processed.
*/
@n7studios
n7studios / zoopla.htm
Created September 4, 2018 18:29
zoopla-average-property-values-postcode-failure.htm
<!DOCTYPE html>
<html>
<head>
<title>Zoopla Average House Price Widget: Outcode Error</title>
</head>
<body>
<!--
Steps to produce the below code:
1. Visit https://www.zoopla.co.uk/useful-tools/widgets/values/
@n7studios
n7studios / custom-tinymce-plugin-icon.js
Last active September 3, 2018 08:03
Custom TinyMCE Dashicon
(function() {
tinymce.PluginManager.add('custom_tinymce_plugin', function(editor,url) {
editor.addButton('custom_tinymce_plugin', {
title: 'Custom TinyMCE Plugin',
icon: 'bold',
onclick: function() {
editor.insertContent('Button clicked!');
}
})
});
@n7studios
n7studios / tuts-crm.php
Last active February 22, 2018 07:28
Tuts+ Create a Simple CRM in WordPress: Part 7
<?php
/**
* Plugin Name: Tuts+ CRM
* Plugin URI: #
* Version: 1.0
* Author: Tuts+
* Author URI: http://code.tutsplus.com
* Description: A simple CRM system for WordPress
* License: GPL2
*/
@n7studios
n7studios / wp-to-buffer-pro-change-url.php
Created December 13, 2017 09:37
WordPress to Buffer Pro: Change value of {url}
<?php
/**
* Plugin Name: WP to Buffer Pro: Change URL
* Plugin URI: http://www.wpzinc.com/plugins/wp-to-buffer-pro
* Version: 1.0.0
* Author: WP Zinc
* Author URI: http://www.wpzinc.com
* Description: Changes the {url} from your Post's URL to something else. Change code in this Plugin as necessary to define the URL you want.
*/