Title: Effortless Shortcode Insertion
Author: domclic
Published: <strong>2025 年 5 月 30 日</strong>
Last modified: 2026 年 6 月 1 日

---

搜索插件

![](https://ps.w.org/effortless-shortcode-insertion/assets/banner-772x250.jpg?rev
=3303329)

![](https://ps.w.org/effortless-shortcode-insertion/assets/icon-256x256.jpg?rev=
3556063)

# Effortless Shortcode Insertion

 作者：[domclic](https://profiles.wordpress.org/domclic/)

[下载](https://downloads.wordpress.org/plugin/effortless-shortcode-insertion.1.0.26.zip)

 * [详情](https://cn.wordpress.org/plugins/effortless-shortcode-insertion/#description)
 * [评价](https://cn.wordpress.org/plugins/effortless-shortcode-insertion/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/effortless-shortcode-insertion/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/effortless-shortcode-insertion/#developers)

 [支持](https://wordpress.org/support/plugin/effortless-shortcode-insertion/)

## 描述

Effortless Shortcode Insertion is a lightweight WordPress plugin that allows you
to create, manage, and insert custom shortcodes with ease. It includes a set of 
built-in shortcodes for common dynamic content and provides an intuitive interface
to add your own.

Features:

    ```
    Built-in shortcodes for current URL, page title, site info, user data, and more.
    Add custom shortcodes via an admin interface.
    Import/export shortcodes for easy migration.
    Secure and sanitized inputs to ensure safety.
    Translation-ready with support for multiple languages.
    ```

### Arbitrary section

For support, please visit domclic.com or contact the author at daviddeflache@domclic.
com.

## 安装

Upload the effortless-shortcode-insertion folder to the /wp-content/plugins/ directory.

Activate the plugin through the ‘Plugins’ menu in WordPress. Navigate to Settings
> Effortless Shortcodes to manage your shortcodes.

## 常见问题

### How do I use a shortcode?

Simply add the shortcode (e.g., [site_title]) to your posts, pages, or widgets where
you want the content to appear.

### Can I create my own shortcodes?

Yes! Go to Settings > Effortless Shortcodes and use the “Add New Shortcode” form
to create custom shortcodes.

### Are the shortcodes secure?

All inputs are sanitized and validated to ensure security and compatibility with
WordPress standards.

### Can I import/export shortcodes?

Yes, the plugin supports importing and exporting shortcodes in JSON format via the
admin interface.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Effortless Shortcode Insertion」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ domclic ](https://profiles.wordpress.org/domclic/)

[帮助将「Effortless Shortcode Insertion」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/effortless-shortcode-insertion)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/effortless-shortcode-insertion/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/effortless-shortcode-insertion/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/effortless-shortcode-insertion/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/effortless-shortcode-insertion/)。

## 更新日志

#### 1.0.26

 * Refactor: donate notice file kept as includes/class-donate-notice.php (preserves
   SVN file history); class remains Effortless_Donate_Notice.

#### 1.0.25

 * Fix: donate notice now correctly displays on Network Admin pages — screen ID 
   normalization strips WordPress’s -network/-user suffix before matching.

#### 1.0.24

 * Refactor: donate notice class renamed Donate_Notice  Effortless_Donate_Notice(
   WP-standard prefix); file renamed to class-effortless-donate-notice.php. No phpcs:
   ignore needed anywhere.

#### 1.0.23

 * Fix: donate notice now uses current_screen hook for reliable screen detection
   on single-site and multisite Network Admin pages.

#### 1.0.22

 * Improvement: added dismissible donate notice on the plugin settings screen.
 * Improvement: added Donate link header field and includes/class-donate-notice.
   php.

#### 1.0.20

    ```
    Minors changes
    ```

#### 1.0.19

    ```
    Removed wrong links
    ```

#### 1.0.18

    ```
    Renamed main plugin file to class-effortless-shortcode-insertion.php for PHPCS compliance.
    Removed trailing whitespace in HTML form section.
    Fixed equals sign alignment in save_shortcode method.
    Replaced short ternary with full if-else in handle_shortcode method.
    ```

#### 0.1.17

    ```
    Fixed security warning for non-sanitized $_POST['shortcodes'].
    ```

#### 0.1.16

    ```
    Fixed security warning for non-sanitized $_POST['shortcodes'] by restructuring condition to avoid direct access before sanitization.
    Ensured no sanitization warnings at line 316 or 318 for full PHPCS compliance.
    ```

#### 0.1.15

    ```
    Fixed security warning for non-sanitized $_POST['shortcodes'] by using isset for validation before access.
    Ensured no direct superglobal access before sanitization for full PHPCS compliance.
    ```

#### 0.1.14

    ```
    Fixed security warning for non-sanitized $_POST['shortcodes'] by avoiding direct access in condition checks.
    Improved input validation for submit_update to ensure PHPCS compliance.
    ```

#### 0.1.13

    ```
    Fixed security warnings for non-validated and non-sanitized $_POST['shortcodes'] input in save_shortcode method.
    Added isset check for $_POST['shortcodes'] to prevent undefined index notices.
    ```

#### 0.1.12

    ```
    Fixed security warning for non-sanitized $_POST['shortcodes'] input before ! empty check in save_shortcode method.
    ```

#### 0.1.11

    ```
    Fixed security warning for non-sanitized $_POST['shortcodes'] input before is_array check in save_shortcode method.
    Ensured early sanitization of shortcode data for full PHPCS compliance.
    ```

#### 0.1.10

    ```
    Fixed security warnings for non-sanitized $_POST['shortcodes'] input in save_shortcode method.
    Improved early sanitization of shortcode data for better security compliance.
    ```

#### 0.1.9

    ```
    Fixed security warnings for non-sanitized inputs ($_POST['append_value'], $_POST['shortcodes'], $_FILES['import_file']).
    Improved sanitization of form inputs for better security.
    ```

#### 0.1.8

    ```
    Fixed fatal error in handle_shortcode method causing site to break.
    Resolved security warnings for non-sanitized and non-validated inputs ($_POST['shortcodes'], $_POST['elsci_nonce']).
    Improved input validation and sanitization for better security.
    ```

#### 0.1.5

    ```
    Fixed security issues with input sanitization and validation.
    Replaced parse_url with wp_parse_url for consistency.
    Used gmdate instead of date for timezone-safe year display.
    ```

#### 0.1.0

    ```
    Initial release.
    ```

## 额外信息

 *  版本 **1.0.26**
 *  最后更新：**5 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.2 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/effortless-shortcode-insertion/)
 * 标签
 * [content management](https://cn.wordpress.org/plugins/tags/content-management/)
   [custom shortcodes](https://cn.wordpress.org/plugins/tags/custom-shortcodes/)
   [shortcodes](https://cn.wordpress.org/plugins/tags/shortcodes/)[Wordpress Shortcodes](https://cn.wordpress.org/plugins/tags/wordpress-shortcodes/)
 *  [高级视图](https://cn.wordpress.org/plugins/effortless-shortcode-insertion/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/effortless-shortcode-insertion/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/effortless-shortcode-insertion/reviews/)

## 贡献者

 *   [ domclic ](https://profiles.wordpress.org/domclic/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/effortless-shortcode-insertion/)