| 开发者 | indiemansoft |
|---|---|
| 更新时间 | 2026年11月17日 03:00 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[indieman_block id="1" title="Special Offer" btn_text="Buy Now"]) and dynamically inject them using {title} and {btn_text} placeholders.{content} placeholder to render content wrapped between opening and closing shortcode tags ([indieman_block id="1"]Your custom text here[/indieman_block]).{site_url}, {site_title}, {current_year}, {post_title}, and {post_url} in your templates.[indieman_block slug="pricing_card"] instead of numeric IDs.<div>, <section>, <article>, <aside>, or Raw HTML with no wrapper).wp_kses_post(). No eval(), no arbitrary script execution, and fully WordPress.org compliant.indieman-custom-blocks folder to /wp-content/plugins/, or upload the zip archive via Plugins -> Add New -> Upload Plugin.{placeholders}, and publish.You can use two types of placeholders:
{current_year} — Current year (e.g., 2026).{site_title} — Website title from WordPress settings.{site_url} — Homepage URL.{post_title} — Title of the post or page where the block is displayed.{post_url} — Permalink of the current post or page.{content} — Content enclosed between opening and closing shortcode tags: [indieman_block]Your text here[/indieman_block].{your_tag} in your HTML template! Then in your shortcode, pass it as a matching attribute:
e.g., [indieman_block id="1" price="$49" discount="50%" badge="SALE"].Any custom attribute you add to the shortcode is matched to a {attribute_name} placeholder in your template. For example, if your template contains <h3 style="color:#0073aa;">{title}</h3>, using [indieman_block id="1" title="Hello World"] will replace {title} with "Hello World".
Yes! Nested shortcodes are fully supported and safely parsed via WordPress do_shortcode().
Yes. In the Shortcode Settings sidebar, set the Block Wrapper Tag to No Wrapper (Raw HTML).
Yes. Output is safely sanitized using standard WordPress functions (wp_kses_post()), and all attribute placeholders are escaped before rendering.