Skip to content

Instantly share code, notes, and snippets.

View n7studios's full-sized avatar

Tim Carr n7studios

View GitHub Profile
@n7studios
n7studios / page-generator-pro-disable-mu-plugin.php
Created February 6, 2020 14:23
Page Generator Pro: Disable Automatic Copying of Must-Use Plugin
<?php
/**
* Plugin Name: Page Generator Pro: Disable Automatic Copying of Must-Use Plugin
* Plugin URI: http://www.wpzinc.com/
* Version: 0.0.1
* Author: WP Zinc
* Author URI: http://www.wpzinc.com
* Description: Stops Page Generator Pro automatically copying the Must-Use Plugin into the wp-content/mu-plugins folder on each update
*/
@n7studios
n7studios / wp-to-hootsuite-append-forwardslash-permalink.php
Created January 15, 2020 16:36
WordPress to Hootsuite Pro: Append Forwardslash to Permalink
@n7studios
n7studios / wp-to-buffer-append-forwardslash-permalink.php
Created October 29, 2019 13:13
WordPress to Buffer Pro: Append Forwardslash to Permalink
@n7studios
n7studios / wp-to-buffer-pro-modify-term-hashtag.php
Created July 30, 2019 14:55
WordPress to Buffer: Modify Term Hashtag
<?php
/**
* Plugin Name: WP to Buffer: Modify Term Hashtag
* Plugin URI: http://www.wpzinc.com/
* Version: 0.0.1
* Author: WP Zinc
* Author URI: http://www.wpzinc.com
* Description: Modify any {taxonomy} based hashtag output, immediately before it is sent to Buffer.
*/
@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 / 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 / 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 / post-to-social.php
Last active March 9, 2024 10:47
Determine Post Publish / Update via Classic Editor, Gutenberg and REST API
<?php
/**
* Example class implementation to perform actions, such as sending a Post
* to a third party API or service, when the Post is published or updated through:
* - Classic Editor
* - Gutenberg
* - REST API
*
* @package Post_To_Social
* @author Tim Carr
@n7studios
n7studios / acf-blocks.php
Created December 14, 2018 16:01
Advanced Custom Fields: Registering Custom Gutenberg Blocks
<?php
/**
* Plugin Name: Advanced Custom Fields: Gutenberg Blocks
* Plugin URI: https://www.n7studios.co.uk
* Version: 1.0.0
* Author: n7 Studios
* Author URI: https://www.n7studios.co.uk
* Description: Example code to register Advanced Custom Field Groups as Blocks. Requires ACF 5.8+
*/
@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/