Skip to content

Instantly share code, notes, and snippets.

Tim Carr n7studios

Block or report user

Report or block n7studios

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@n7studios
n7studios / post-to-social.php
Last active Aug 12, 2019
Determine Post Publish / Update via Classic Editor, Gutenberg and REST API
View post-to-social.php
<?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 / wp-to-buffer-pro-modify-term-hashtag.php
Created Jul 30, 2019
WordPress to Buffer: Modify Term Hashtag
View wp-to-buffer-pro-modify-term-hashtag.php
<?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 Jun 17, 2019
WordPress to Buffer: Modify Excerpt in Status
View wp-to-buffer-modify-excerpt.php
<?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 / gravity-forms-move-progress-bar-bottom.php
Created Nov 19, 2015
Gravity Forms - Move Progress Bar to Bottom of Form
View gravity-forms-move-progress-bar-bottom.php
<?php
/**
* Plugin Name: Gravity Forms: Move Progress Bar to Bottom of Form
* Plugin URI: http://www.n7studios.co.uk
* Version: 1.0.0
* Author: n7 Studios
* Author URI: http://www.n7studios.co.uk
* Description: Moves the progress bar from the top to the bottom of the Gravity Form. The Start Paging section of the form MUST have a CSS class = progress-bar-bottom
*/
@n7studios
n7studios / autoptimize-inline-js-minification-fault.php
Created May 16, 2016
Autoptimize Inline Javascript Minification Fault
View autoptimize-inline-js-minification-fault.php
<?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
*/
View page-generator-pro-enable-meta-boxes.php
<?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 Mar 4, 2019
Custom Fields Meta Box: Define Meta Keys for Performance
View custom-fields-meta-keys.php
<?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 Aug 6, 2015
Envira Gallery - Single Lightbox for All Galleries
View envira-gallery-single-lightbox.php
@n7studios
n7studios / page-generator-pro-tablepress.php
Created Feb 20, 2019
Page Generator Pro: TablePress Example Integration
View page-generator-pro-tablepress.php
<?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.
*/
View wordpress-add-title-to-iframe-oembed.php
<?php
/**
* Adds a title attribute to iframe oembeds
*
* @since 1.0.0
*
* @param string $html HTML
* @param string $url URL to embed
* @param array $attributes HTML Attributes
* @param int $post_id Post ID
You can’t perform that action at this time.