Support » Plugin: Hustle - Email Marketing, Lead Generation, Optins, Popups » Any filter to change sharable link?

  • Resolved KaizenCoders

    (@kaizencoders)


    Hi,

    We are the author of a URL Shortify (URL Shortener) WordPress plugin.

    We want to integrate this plugin with URL Shortify plugin

    Just want to know is there any filter available in the plugin using which we can change the sharable Post/ Page link?

    If not, is it possible to add some filter into it?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Pawel – WPMU DEV Support

    (@wpmudev-support9)

    Hello @kaizencoders

    I trust you’re doing well!

    I’ve forwarded your question to our developers. Once there will be an update we will reply back in this thread.

    Have a good day!

    Cheers,
    Nastia

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hey there @kaizencoders

    Our developers informed us that there’s one for filtering all sharing networks in frontend, where the link could be changed, but it doesn’t sound good for filtering the link only. So they created a new task in order to introduce a filter for links only. This is planned to be included in the 7.3.1 update.

    Warm regards,
    Dimitris

    Thread Starter KaizenCoders

    (@kaizencoders)

    Hi Dimitris,

    Thanks for an update!

    It would be great if filter contains Post ID. It will help us to filter the sharable url easily and also performance optimised.

    Looking forward to the update.

    Plugin Support Pawel – WPMU DEV Support

    (@wpmudev-support9)

    Hello @kaizencoders

    I hope you are doing well!

    Thank you for your feedback! I’ve forwarded it to our developers as well!

    For now, I’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

    Thread Starter KaizenCoders

    (@kaizencoders)

    Hi Nastia,

    Just want to know the ETA for 7.3.1 update.

    Plugin Support Pawel – WPMU DEV Support

    (@wpmudev-support9)

    Hello @kaizencoders

    I trust you’re doing well!

    I’m afraid we do not share an ETA. We don’t publish ETAs to prevent disappointment if a deadline is missed(which in plugin development quite a frequent occurrence!).

    Once the plugin will pass all the required testing it will be released 🙂

    We really appreciate your patience here!

    Kind regards,
    Nastia

    Plugin Support Pawel – WPMU DEV Support

    (@wpmudev-support9)

    Hello @kaizencoders

    I trust you’re doing well!

    This feature will be available after the release of version 7.3.1. . It will look like:
    apply_filters( 'hustle_social_share_custom_link', $link, $social_icon_data, $module )

    To filter them by post ID, additionally, you may add the following snippet to your site.

    Please add this snippet to a functions.php file, preferable to a child theme. Otherwise add it as an mu-plugin. Please see here how to install an mu-plugin.

    add_filter( 'hustle_social_share_custom_link', function( $link, $social_icon_data, $module ) {
        $post_id = get_the_ID(); // get post ID
        $link = 'https://www.google.com/'; //change link
        return $link;
    }, 10, 3 );

    If the code will be added as a mu-plugin make sure to add <?php on a first-line.

    Let us know if you have any further questions.

    Kind regards,
    Nastia

    Thread Starter KaizenCoders

    (@kaizencoders)

    Hi Nastia,

    That’s great!

    Looking forward to 7.3.1 release. Once it will release, we will integrate URL Shortify with it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Any filter to change sharable link?’ is closed to new replies.