{"id":280378,"date":"2026-06-09T14:36:30","date_gmt":"2026-06-09T14:36:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/lecouponcopy\/"},"modified":"2026-06-09T14:35:52","modified_gmt":"2026-06-09T14:35:52","slug":"lecouponcopy","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/lecouponcopy\/","author":16982120,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.1","stable_tag":"1.2.1","tested":"7.0","requires":"6.1","requires_php":"7.4","requires_plugins":null,"header_name":"lecouponcopy","header_author":"\u8001\u848b","header_description":"\u4e00\u4e2a\u7b80\u5355\u7684\u4f18\u60e0\u7801\u590d\u5236\u63d2\u4ef6\uff0c\u652f\u6301\u7eaf\u6587\u672c\u590d\u5236\u548c\u5e26\u8df3\u8f6c\u94fe\u63a5\u7684\u590d\u5236\u529f\u80fd\u3002\u516c\u4f17\u53f7\uff1a\u8001\u848b\u670b\u53cb\u5708","assets_banners_color":"cce3eb","last_updated":"2026-06-09 14:35:52","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.lezaiyun.com\/donate\/","header_plugin_uri":"https:\/\/www.lezaiyun.com\/lecouponcopy.html","header_author_uri":"https:\/\/www.laojiang.me","rating":0,"author_block_rating":0,"active_installs":0,"downloads":33,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2.1":{"tag":"1.2.1","author":"laobuluo","date":"2026-06-09 14:35:52"}},"upgrade_notice":{"1.2.1":"<p>Shortcode renamed to <code>[le_coupon_copy]<\/code>. Update existing shortcodes and re-submit with enqueued admin scripts.<\/p>","1.0.0":"<p>First public release with coupon shortcode, one-click copy, redirect support, and style customization.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3566164,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3566164,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3566164,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3566164,"resolution":"1","location":"assets","locale":"","width":600,"height":281},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3566164,"resolution":"2","location":"assets","locale":"","width":820,"height":404},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3566164,"resolution":"3","location":"assets","locale":"","width":820,"height":403}},"screenshots":{"1":"Frontend coupon display with copy button","2":"Style settings page in WordPress admin","3":"\"Insert Coupon\" button in the editor toolbar"}},"plugin_section":[],"plugin_tags":[326,266337,80],"plugin_category":[43,45],"plugin_contributors":[169988],"plugin_business_model":[],"class_list":["post-280378","plugin","type-plugin","status-publish","hentry","plugin_tags-coupon","plugin_tags-coupon-copy","plugin_tags-shortcode","plugin_category-customization","plugin_category-ecommerce","plugin_contributors-laobuluo","plugin_committers-laobuluo"],"banners":{"banner":"https:\/\/ps.w.org\/lecouponcopy\/assets\/banner-772x250.png?rev=3566164","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/lecouponcopy\/assets\/icon-128x128.png?rev=3566164","icon_2x":"https:\/\/ps.w.org\/lecouponcopy\/assets\/icon-256x256.png?rev=3566164","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/lecouponcopy\/assets\/screenshot-1.png?rev=3566164","caption":"Frontend coupon display with copy button"},{"src":"https:\/\/ps.w.org\/lecouponcopy\/assets\/screenshot-2.png?rev=3566164","caption":"Style settings page in WordPress admin"},{"src":"https:\/\/ps.w.org\/lecouponcopy\/assets\/screenshot-3.png?rev=3566164","caption":"\"Insert Coupon\" button in the editor toolbar"}],"raw_content":"<!--section=description-->\n<p>LeCouponCopy is a lightweight WordPress plugin that displays coupon codes with a shortcode. Visitors can copy a coupon code with one click, and you can optionally redirect users to a target URL after the copy action.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>One-click coupon copy<\/li>\n<li>Customizable button, text, and border styles<\/li>\n<li>Optional redirect URL after copy<\/li>\n<li>Responsive layout compatible with most themes<\/li>\n<li>Supports Classic Editor and Gutenberg with an insert-shortcode toolbar button<\/li>\n<li>Supports Quicktags insertion in text mode<\/li>\n<li>Color and font-size options available in Settings<\/li>\n<\/ul>\n\n<h4>Shortcode Usage<\/h4>\n\n<p>Basic usage (coupon code only):<\/p>\n\n<pre><code>[le_coupon_copy code=\"COUPON123\"]\n<\/code><\/pre>\n\n<p>Full parameters (display text + redirect URL):<\/p>\n\n<pre><code>[le_coupon_copy code=\"COUPON123\" text=\"\u70b9\u51fb\u590d\u5236\u4f18\u60e0\u7801\" url=\"https:\/\/example.com\"]\n<\/code><\/pre>\n\n<ul>\n<li><code>code<\/code>: Coupon code to copy (required)<\/li>\n<li><code>text<\/code>: Frontend display text (optional, defaults to <code>code<\/code>)<\/li>\n<li><code>url<\/code>: Redirect URL after copy (optional)<\/li>\n<\/ul>\n\n<!--section=installation-->\n<h4>Automatic Installation<\/h4>\n\n<ol>\n<li>In WordPress admin, go to Plugins -&gt; Add New.<\/li>\n<li>Search for \"LeCoupon Copy\".<\/li>\n<li>Click Install Now and activate the plugin.<\/li>\n<\/ol>\n\n<h4>Manual Installation<\/h4>\n\n<ol>\n<li>Download and extract the plugin package.<\/li>\n<li>Upload the <code>lecouponcopy<\/code> folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate \"LeCoupon Copy\" from the Plugins page.<\/li>\n<\/ol>\n\n<h4>After Activation<\/h4>\n\n<ol>\n<li>Go to Settings -&gt; Coupon Copy and adjust styles as needed.<\/li>\n<li>Insert <code>[le_coupon_copy code=\"YOURCODE\"]<\/code> in a post or page, or use the editor toolbar button.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20use%20it%20in%20a%20page%3F\"><h3>How do I use it in a page?<\/h3><\/dt>\n<dd><p>Insert a shortcode such as <code>[le_coupon_copy code=\"YOURCODE\"]<\/code> in the editor. You can also use the \"Insert Coupon\" toolbar button to generate the shortcode.<\/p><\/dd>\n<dt id=\"can%20i%20place%20multiple%20coupon%20codes%20on%20one%20page%3F\"><h3>Can I place multiple coupon codes on one page?<\/h3><\/dt>\n<dd><p>Yes. You can use multiple <code>[le_coupon_copy ...]<\/code> shortcodes in the same post or page.<\/p><\/dd>\n<dt id=\"how%20can%20i%20redirect%20users%20after%20copying%3F\"><h3>How can I redirect users after copying?<\/h3><\/dt>\n<dd><p>Add the <code>url<\/code> parameter in the shortcode, for example: <code>[le_coupon_copy code=\"ABC\" url=\"https:\/\/example.com\"]<\/code>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Renamed shortcode from <code>[lecoupon]<\/code> to <code>[le_coupon_copy]<\/code> for WordPress.org naming guidelines<\/li>\n<li>Moved Quicktags admin JavaScript to enqueued script file<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>Added <code>[le_coupon_copy]<\/code> shortcode with <code>code<\/code>, <code>text<\/code>, and <code>url<\/code> parameters<\/li>\n<li>Added TinyMCE insert button for Classic Editor<\/li>\n<li>Added Quicktags button in text mode<\/li>\n<li>Added style settings for text, button, border colors, and font sizes<\/li>\n<\/ul>","raw_excerpt":"A simple WordPress coupon copy plugin with shortcode and redirect support.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/280378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=280378"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/laobuluo"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=280378"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=280378"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=280378"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=280378"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=280378"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=280378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}