wp-campaign-url-builder icon indicating copy to clipboard operation
wp-campaign-url-builder copied to clipboard

Create Short URL for Current Page - Popup for Admins

Open davidbitton opened this issue 5 years ago • 7 comments

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 avatar May 22 '19 15:05 davidbitton

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.

davidbitton avatar May 22 '19 15:05 davidbitton

@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 :)

reatlat avatar May 22 '19 15:05 reatlat

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

davidbitton avatar May 22 '19 19:05 davidbitton

@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.

reatlat avatar May 22 '19 19:05 reatlat

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

davidbitton avatar May 22 '19 20:05 davidbitton

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

reatlat avatar May 22 '19 20:05 reatlat

same here.

davidbitton avatar May 22 '19 23:05 davidbitton