• Resolved Daniele Muscetta

    (@dani3l3)


    Is it possible to add utm parameters (or any parameter) after the URL?
    I was able to do this in the message’s body but the button after the post is hardcoded to the standard wordpress url? Any plans to allow editing it (or overriding a function…) ?
    thanks a lot,

Viewing 7 replies - 1 through 7 (of 7 total)
  • Manzoor Wani (a11n)

    (@manzoorwanijk)

    It’s very well possible by custom code:

    /* WPTelegram Modify default inline button */
    add_filter( 'wptelegram_p2tg_default_inline_button', function ( $button, $post ) {
    
     $button['url'] = add_query_arg( 'utm_source', 'value here', $button['url'] );
     // $button['text'] = 'New Button Text';
     
     return $button;
     
    }, 10, 2 );
    /* WPTelegram Modify default inline button */
    
    Thread Starter Daniele Muscetta

    (@dani3l3)

    Thank you very much, I am trying it out!

    Thread Starter Daniele Muscetta

    (@dani3l3)

    thank you very much for the prompt and precise support and solution (as always). It works like a charm.

    Manzoor Wani (a11n)

    (@manzoorwanijk)

    I’m glad it worked, you may write a review for the plugin

    exactamente en que ficheroexactly in which file or where is this code to be put? o donde hay que poner este codigo ?

    exactly in which file or where is this code to be put?

    @nikronik you can add it to functions.php of your active/child theme.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘utm parameters?’ is closed to new replies.