Skip to content

Instantly share code, notes, and snippets.

@pirate-bot
Last active February 26, 2026 08:32
Show Gist options
  • Select an option

  • Save pirate-bot/a8b65b47d137321c2a75861b7e1b87a5 to your computer and use it in GitHub Desktop.

Select an option

Save pirate-bot/a8b65b47d137321c2a75861b7e1b87a5 to your computer and use it in GitHub Desktop.
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',
function ( $item_link_data, $item, $job ) {
// Change link text (translatable).
$item_link_data['text'] = esc_html__( 'Read more custom', 'your-text-domain' );
// Add tracking parameters/UTMs.
$item_link_data['attr']['href'] = add_query_arg(
array(
'utm_source' => '',
'utm_medium' => '',
'utm_campaign' => '',
),
$item_link_data['attr']['href']
);
// Change link opening behavior.
$item_link_data['attr']['target'] = '_self'; // _blank, _self, _parent, _top
// Add link type - follow/nofollow link.
$item_link_data['attr']['rel'] = 'nofollow'; // noopener, nofollow.
return $item_link_data;
},
10,
3
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment