Skip to content

Instantly share code, notes, and snippets.

View pirate-bot's full-sized avatar

themeisle[bot] pirate-bot

View GitHub Profile
@pirate-bot
pirate-bot / feedzy-delete-content-images-at-import.php
Created February 26, 2026 08:15
Delete images from content on imported posts
<?php
/*
Plugin Name: Feedzy - Delete images from content at import
Version: 0.0.1
Author URI: https://themeisle.com
*/
function bweb_feedzy_remove_img_matches( $matches ) {
// Return an empty string to completely remove the image tags
return '';
}
@pirate-bot
pirate-bot / feedzy-delete-featured-image-from-server.php
Created February 26, 2026 08:15
Delete featured image from server when a post is deleted.
@pirate-bot
pirate-bot / feedzy-do-not-import-items-without-images.php
Created February 26, 2026 08:15
Do not import items that do not have images.
<?php
/*
Plugin Name: Feedzy tweak - Do not import items that do not have images
Version: 0.0.1
Author URI: https://themeisle.com
*/
add_filter( 'feedzy_insert_post_args', 'feedzy_insert_post_limit', 10, 4 );
function feedzy_insert_post_limit( $args, $item, $title, $content ) {
// empty title and content prevents WP from inserting a post.
$allowed = array('gif', 'png', 'jpg', 'jpeg');
@pirate-bot
pirate-bot / feedzy-link-post-title-to-original-article.php
Created February 26, 2026 08:15
link the title to the original article and open them in new window.
<?php
/**
* Plugin Name: Feedzy posts - link the title to the original article and open them in new window
* Description: Link the title of posts imported by Feedzy to the original article
* Version: 1.0
* Author: Themeisle
* Author URI: https://themeisle.com
*/
/**
@pirate-bot
pirate-bot / feedzy-read-more-custom-text.php
Last active February 26, 2026 08:32
customize the text of the read more link
<?php
/*
Plugin Name: Feedzy - Custom text on the Read More link
Version: 0.0.1
Author URI: https://themeisle.com
*/
add_filter(
'feedzy_item_link',
@pirate-bot
pirate-bot / feedzy-remove-duplicate-via-titles.php
Created February 26, 2026 08:15
Remove duplicate feed items via titles.
<?php
/*
Plugin Name: Feedzy tweak - Remove duplicate feed items via titles
Description: When you have a large set of feed URLs that you would like to display. Use this plugin to remove the duplicates based on their titles.
Version: 0.0.1
Author URI: https://themeisle.com
*/
function tifd_feedzy_remove_duplicates( $items, $feedURL ) {
$uniques = array();
foreach ( $items as $item ) {
@pirate-bot
pirate-bot / feedzy-remove-duplicates-feed-items.php
Created February 26, 2026 08:15
Remove duplicate feed items.
<?php
/*
Plugin Name: Feedzy tweak - Remove duplicate feed items
Description: When you have a large set of feed URLs that you would like to display. Use this plugin to remove the duplicates based on their URLs.
Version: 0.0.1
Author URI: https://themeisle.com
*/
function tifd_feedzy_remove_duplicates( $items, $feedURL ) {
$uniques = array();
foreach ( $items as $item ) {
@pirate-bot
pirate-bot / feedzy-remove-links-from-imported-content.php
Created February 26, 2026 08:15
Remove all the links from the content when importing posts in Feedzy.
@pirate-bot
pirate-bot / feedzy-replace-empty-author-name-with-source.php
Created February 26, 2026 08:15
Replace the empty author name with the source.
<?php
/*
Plugin Name: Feedzy tweak - Replace the empty author name with the source
Version: 0.0.1
Author URI: https://themeisle.com
*/
add_filter( 'feedzy_meta_date', function( $date, $date_time, $feed_url, $item ) {
$author = $item->get_author();
$permalink = $item->get_feed()->get_permalink();
if ( empty($author) ) {
@pirate-bot
pirate-bot / index.php
Created February 26, 2026 08:15
Description for first file
<?phpp