Skip to content

Instantly share code, notes, and snippets.

View n7studios's full-sized avatar

Tim Carr n7studios

View GitHub Profile
<?php
/**
* Plugin Name: WP to Buffer Pro: Remove URLs from Content and Excerpt Tags
* Plugin URI: http://www.wpzinc.com/
* Version: 0.0.1
* Author: WP Zinc
* Author URI: http://www.wpzinc.com
* Description: Remove URLs from Content and Excerpt Tags.
*/
@n7studios
n7studios / wp-to-buffer-pro-custom-image.php
Last active May 30, 2023 12:49
WordPress to Buffer Pro: Programmatically specify status image(s)
<?php
/**
* Plugin Name: WP to Buffer Pro: Custom Image for Status
* Plugin URI: http://www.wpzinc.com/
* Version: 0.0.1
* Author: WP Zinc
* Author URI: http://www.wpzinc.com
* Description: Define a custom image for a status programmatically
*/
@n7studios
n7studios / page-generator-pro-programmatically-process-spintax-block-spintax.php
Created June 22, 2021 18:48
Page Generator Pro: Programmatically Process Spintax and Block Spintax
<?php
/**
* Make sure to run this after WordPress' init hook has completed.
*/
function process_block_spintax_and_spintax_example( $text ) {
// Bail if Page Generator Pro isn't active
if ( ! function_exists( 'Page_Generator_Pro' ) ) {
return new WP_Error( 'error', __( 'Page Generator Pro not active.' ) );
}
@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 / wp-to-buffer-pro-convert-paragraphs-to-breaklines.php
Created February 29, 2020 13:18
WordPress to Buffer Pro: Convert Paragraphs to Breaklines
<?php
/**
* Plugin Name: WP to Buffer Pro: Convert Paragraphs to Breaklines in Statuses
* Plugin URI: http://www.wpzinc.com/
* Version: 0.0.1
* Author: WP Zinc
* Author URI: http://www.wpzinc.com
* Description: Modify the {content} output by converting paragraphs to breaklines
*/