Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim Carr n7studios

View GitHub Profile
View wp-to-buffer-pro-strip-urls-from-content-excerpt.php
<?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
Created Jun 23, 2021
WordPress to Buffer Pro: Custom Image
View wp-to-buffer-pro-custom-image.php
<?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 Jun 22, 2021
Page Generator Pro: Programmatically Process Spintax and Block Spintax
View page-generator-pro-programmatically-process-spintax-block-spintax.php
<?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 Jun 22, 2021
Page Generator Pro: Programmatically Process Block Spintax
View page-generator-pro-programatically-process-block-spintax.php
/**
* 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 Jun 22, 2021
Page Generator Pro: Programmatically Process Spintax
View page-generator-pro-programatically-process-spintax.php
/**
* 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 Oct 28, 2020
Media Library Organizer: Tree View: Remove List View Drag + Drop Column
View mlo-tree-view-remove-list-view-drag-drop-column.php
<?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 Oct 28, 2020
Media Library Organizer: Remove Menu Item
View mlo-remove-menu.php
<?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 Aug 25, 2020
Page Generator Pro: Define Advanced Custom Field Post Object Field Value on Generation
View page-generator-pro-define-acf-post-obect-field-value.php
<?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 Apr 16, 2020
WordPress to Buffer Pro: Broadbean XML Feed: Define Featured Image on new imported Jobs
View wp-to-buffer-pro-broadbean-featured-image.php
@n7studios
n7studios / wp-to-buffer-pro-convert-paragraphs-to-breaklines.php
Created Feb 29, 2020
WordPress to Buffer Pro: Convert Paragraphs to Breaklines
View wp-to-buffer-pro-convert-paragraphs-to-breaklines.php
<?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
*/