{"id":7358,"date":"2021-12-15T17:29:27","date_gmt":"2021-12-15T17:29:27","guid":{"rendered":"http:\/\/a8759758b2.nxcli.io\/?post_type=docs&#038;p=7358"},"modified":"2024-09-16T15:02:55","modified_gmt":"2024-09-16T15:02:55","password":"","slug":"codigos-cortos","status":"publish","type":"docs","link":"https:\/\/couponaffiliates.com\/es\/docs\/shortcodes\/","title":{"rendered":"C\u00f3digos cortos"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p><strong>Dashboard Page<\/strong><\/p>\n\n\n\n<p>This shortcode will display the main affiliate dashboard page.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[couponaffiliates]<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p><strong>Registration Form<\/strong><\/p>\n\n\n\n<p>This shortcode will display the affiliate registration form on a custom page.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[couponaffiliates-register]<\/pre>\n\n\n\n<p><span style=\"text-decoration: underline;\">Template Coupons<\/span><\/p>\n\n\n\n<p>If you have <a href=\"https:\/\/couponaffiliates.com\/docs\/pro-multiple-template-coupons\/\">multiple template coupons<\/a> enabled, by default the registration form will show a dropdown of all the template options. You can however display a registration form for a specific template coupon by adding the &#8220;template&#8221; attribute to the shortcode with the &#8220;coupon code&#8221; (not the name) like so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;couponaffiliates-register template=\"affiliatetemplatecoupon\"]<\/code><\/pre>\n\n\n\n<p>Make sure this is added as a template in the registration settings too.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p><strong>Referrer<\/strong><\/p>\n\n\n\n<p>This shortcode will display the referrer that is linked to the current visitor\/customer (in plain text).<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[couponaffiliates-referrer]<\/pre>\n\n\n\n<p>If you want to add text before it, then use the parameter &#8220;text&#8221; like so:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[couponaffiliates-referrer text=\"Referrer code:\"]<\/pre>\n\n\n\n<p>You can also format this to be used in a URL by using the &#8220;type&#8221; parameter and setting it to &#8220;url&#8221; like so:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> [couponaffiliates-referrer text=\"Referrer code:\" type=\"url\"]<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p><strong>My Coupons<\/strong><\/p>\n\n\n\n<p>This shortcode will show the coupon(s) that are assigned to the current logged in user (in plain text).<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[couponaffiliates-my-coupons]<\/pre>\n\n\n\n<p>If the user is assigned to multiple coupons, they will be separated by a comma.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p><strong>My Referral URLS<\/strong><\/p>\n\n\n\n<p>This shortcode will show the referral URLs for the coupons that are assigned to the current logged in user (in plain text). If they are only assigned to 1 coupon, it simply shows the 1 default referral link for their coupon, and nothing else.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[couponaffiliates-referral-urls]<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p><strong>MLA Shortcodes<\/strong><\/p>\n\n\n\n<p>Show the MLA dashboard:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[couponaffiliates-mla]<\/pre>\n\n\n\n<p>Show the MLA subaffiliates network tree:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;couponaffiliates-mla-subaffiliates]<\/code><\/pre>\n\n\n\n<p>Show the MLA payouts section:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;couponaffiliates-mla-payouts]<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p><strong>Creatives<\/strong><\/p>\n\n\n\n<p>Show the creatives section in a custom location:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;couponaffiliates-creatives]<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p><strong>Payouts<\/strong><\/p>\n\n\n\n<p>Show the payouts section in a custom location:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;couponaffiliates-payouts]<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p><strong>Store Credit<\/strong><\/p>\n\n\n\n<p>Show the users current store credit (built-in system):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;couponaffiliates_credit]<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Dashboard Page This shortcode will display the main affiliate dashboard page. [couponaffiliates] Registration Form This shortcode will display the affiliate registration form on a custom page. [couponaffiliates-register] Template Coupons If you have multiple template coupons enabled, by default the registration form will show a dropdown of all the template options. You can however display a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","footnotes":"","_links_to":"","_links_to_target":""},"doc_category":[37],"doc_tag":[],"class_list":["post-7358","docs","type-docs","status-publish","hentry","doc_category-setup","wpbf-post"],"year_month":"2026-05","word_count":297,"total_views":"3935","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"display_name":"Elliot Sowersby","author_link":"#"},"doc_category_info":[{"term_name":"Setup","term_url":"https:\/\/couponaffiliates.com\/es\/docs-category\/setup\/"}],"doc_tag_info":[],"taxonomy_info":{"doc_category":[{"value":37,"label":"Setup"}]},"featured_image_src_large":false,"comment_info":0,"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/docs\/7358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/comments?post=7358"}],"version-history":[{"count":14,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/docs\/7358\/revisions"}],"predecessor-version":[{"id":18689,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/docs\/7358\/revisions\/18689"}],"wp:attachment":[{"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/media?parent=7358"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/doc_category?post=7358"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/doc_tag?post=7358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}