Skip to content

Instantly share code, notes, and snippets.

View n7studios's full-sized avatar

Tim Carr n7studios

View GitHub Profile
@n7studios
n7studios / kit-exclude-forms-post-type.php
Created February 28, 2025 01:11
Kit: Exclude Forms on Post Type
<?php
/**
* Plugin Name: Kit: Exclude Post Type from Forms
* Version: 0.0.1
* Author: Kit
* Description: Exclude a Post Type from having Forms appended
*/
add_action( 'convertkit_get_supported_post_types', function( $post_types ) {
@n7studios
n7studios / disable-load-textdomain-jit-notice.php
Created November 25, 2024 05:00
Disable "Notice: Function _load_textdomain_just_in_time was called incorrectly" in WordPress 6.7
<?php
/**
* Disable `_load_textdomain_just_in_time` `doing_it_wrong` notice
*
* @package ConvertKit
* @author ConvertKit
*
* @wordpress-plugin
* Plugin Name: Disable `_load_textdomain_just_in_time` `doing_it_wrong` notice
* Plugin URI: https://www.wpzinc.com/
<?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
*/