reatlat / wp-campaign-url-builder

WordPress plugin - Generates links for Analytics tools and short link. Enter your Campaign Name, Source, Medium (UTM link) etc. to generate a full link and a short link (trough the Bitly URL Shortener API) all in once.
https://wordpress.org/plugins/campaign-url-builder/
GNU General Public License v3.0
17 stars 4 forks source link

Create Short URL for Current Page - Popup for Admins #32

Open davidbitton opened 5 years ago

davidbitton commented 5 years ago

Is there a button to create a shortened URL for the a product or product category? Can/Is that button on the product/category page or on the webpage itself in the admin toolbar? Thanks!

davidbitton commented 5 years ago

Found it under the Product listing itself however, it's not there for a Category, but I have a Page for listing a specific Category and that has the shortener.

reatlat commented 5 years ago

@davidbitton TY for questions, I have a task for next release to add support custom post types like Categories, Tags, etc... not sure how better made it, perhaps I will make it with function 'apply_filter()` and anyone who looking for custom post support will add it yourself :)

davidbitton commented 5 years ago

@reatlat I like that idea. How can we add a button to the admin toolbar to create a link for the current page?

reatlat commented 5 years ago

@davidbitton using class WP_Admin_Bar()

but in this case, perhaps we have to create a popup with UTM params, or use some default params 🤔

also, ajax for create links activated only for admin area, for enable ajax_create_link on frontend you can enable shortcode option.

davidbitton commented 5 years ago

@reatlat i was thinking of a popup. We could use defaults for regular use as well.

reatlat commented 5 years ago

@davidbitton do you want to collaborate? not sure when I again have a time to done this ;)

davidbitton commented 5 years ago

same here.