Navigation Menu

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-programatically-process-block-spintax.php
Created June 22, 2021 18:47
Page Generator Pro: Programmatically Process Block Spintax
/**
* Make sure to run this after WordPress' init hook has completed.
*/
if ( function_exists( 'Page_Generator_Pro' ) ) {
$spin = Page_Generator_Pro()->get_class( 'block_spin' )->process(
'#section#
#p#
#s#
Writing content is a lot of fun.
Creating articles is a rewarding experience.
@n7studios
n7studios / page-generator-pro-programatically-process-spintax.php
Created June 22, 2021 18:46
Page Generator Pro: Programmatically Process Spintax
/**
* Make sure to run this after WordPress' init hook has completed.
*/
if ( function_exists( 'Page_Generator_Pro' ) ) {
$spin = Page_Generator_Pro()->get_class( 'spintax' )->process( '{Writing|Creating} {content|articles} is {a lot of fun|rewarding experience}.' );
if ( is_wp_error( $spin ) ) {
// Something went wrong e.g. invalid spintax
// Handle this error as you need
echo $spin->get_error_message();
@n7studios
n7studios / mlo-tree-view-remove-list-view-drag-drop-column.php
Created October 28, 2020 12:00
Media Library Organizer: Tree View: Remove List View Drag + Drop Column
<?php
/**
* Plugin Name: Media Library Organizer: Tree View: Remove List View Drag + Drop Column
* Plugin URI: https://wpmedialibrary.com
* Version: 0.0.1
* Author: WP Media Library
* Author URI: https://wpmedialibrary.com
* Description: Remove Tree View's Drag and Drop Column in Media > List View
*/
@n7studios
n7studios / mlo-remove-menu.php
Created October 28, 2020 11:59
Media Library Organizer: Remove Menu Item
<?php
/**
* Plugin Name: Media Library Organizer: Remove Menu
* Plugin URI: https://wpmedialibrary.com
* Version: 0.0.1
* Author: WP Media Library
* Author URI: https://wpmedialibrary.com
* Description: Remove Media Library Organizer from the WordPress Admin Menu
*/
@n7studios
n7studios / page-generator-pro-define-acf-post-obect-field-value.php
Created August 25, 2020 13:49
Page Generator Pro: Define Advanced Custom Field Post Object Field Value on Generation
<?php
/**
* Plugin Name: Page Generator Pro: Define Advanced Custom Field Post Object Field Value on Generation
* Plugin URI: http://www.wpzinc.com/
* Version: 0.0.1
* Author: WP Zinc
* Author URI: http://www.wpzinc.com
* Description: Defines Advanced Custom Field Post Object Field Value on Generation
*/
@n7studios
n7studios / wp-to-buffer-pro-broadbean-featured-image.php
Created April 16, 2020 16:58
WordPress to Buffer Pro: Broadbean XML Feed: Define Featured Image on new imported Jobs
@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.
*/