Linux 软件免费装
Banner图

Post Snippets - Custom WordPress Code Snippets Customizer

开发者 wpexpertsio
Postsnippets
更新时间 2025年1月27日 20:50
PHP版本: 8 及以上
WordPress版本: 6.7
版权: GPLv2 or later
版权网址: 版权信息

标签

html shortcodes shortcode snippets block blocks snippet custom snippet custom shortcode

下载

2.5.4 4.0.4 4.0.6 4.0.7 4.0.8 3.0.1 3.1.1 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.7 1.7.1 1.7.2 1.7.3 1.3.5 2.5 1.8.3 1.0 1.8 2.2.3 2.3.4 3.0.21 2.3.3 3.1.7 4.0.1 1.4 1.8.8 4.0.9 1.9.7 2.5.1 3.0.16 3.0.17 3.0.19 3.0.2 3.0.20 3.0.3 3.0.4 3.0.5 3.1 3.1.2 1.8.9 1.8.9.1 1.8.9.2 1.9 1.8.5 1.1 2.5.2 1.9.3 1.9.4 1.9.5 2.0 2.2 2.2.1 2.2.2 2.3 2.3.2 2.3.6 2.3.7 2.3.8 2.3.9 2.4 3.0.0 3.0.18 3.1.3 3.1.4 1.4.9.1 1.8.1 1.8.2 1.8.7 1.9.6 2.1.1 2.3.1 2.3.5 2.5.3 3.1.5 3.1.6 1.2 2.1 1.3 4.0 1.8.6 1.9.1 1.9.2 4.0.2 4.0.3 4.0.5

详情介绍:

Create custom shortcodes and reusable content and insert them in into your posts and pages.
This plugin lets you build a library with snippets of HTML, PHP code or reoccurring text that you often use in your posts and pages. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor via a button in the Visual mode. The snippet can be inserted as defined, or as a shortcode to keep flexibility for updating the snippet. PHP code is supported for snippets inserted as shortcodes. Basic Features Premium Features Technical Documentation To obtain more information, including instructions for plugin installation, we recommend referring to our technical documentation page on Post Snippets. Additionally, to stay informed about the latest plugin updates, enhancements, and relevant news, you can always visit our Post Snippets blog. Support To get your queries resolved related to Post Snippets, you can always take help from WordPress Support. Pricing Plans Post Snippets offers budget-friendly pricing options that complement your business needs. See the pricing plan details here.

安装:

Requirements Automatic installation
  1. Install the plugin via Plugins > New plugin. Search for 'Post Snippets'.
  2. Activate the 'Post Snippets' plugin through the 'Plugins' menu in WordPress.
  3. Go to Settings > Post Snippets and start entering your snippets.
Manual installation
  1. Unpack the downloaded package
  2. Unzip and upload the directory 'post-snippets' to the /wp-content/plugins/ directory
  3. Activate the 'Post Snippets' plugin through the 'Plugins' menu in WordPress
  4. Go to Settings > Post Snippets and start entering your snippets.
Uninstall
  1. Deactivate Post Snippets in the 'Plugins' menu in WordPress.
  2. Select Post Snippets in the 'Recently Active Plugins' section and select 'Delete' from the 'Bulk Actions' drop down menu.
  3. This will delete all the plugin files from the server as well as erasing all options the plugin has stored in the database.

屏幕截图:

  • The convenient button for Post Snippets in the WordPress editor.
  • The Post Snippet insert dialog that shows all snippets.
  • Example of an inserted snippet, with optional variables.
  • Easy to access inline documentation (top right 'Help' button in WordPress).

升级注意事项:

Version 4.0.6 - 31 july 2024
  • Added compatibility for WordPress Version 6.6.1
Version 3.0.10 - 2 Lug 2019
  • Updated Freemius SDK
  • Added compatibility with PHP 7.3
1.9 Note that starting with this version and moving forward, at least PHP v5.2.4 is required to run Post Snippets. 2.1 The function get_post_snippet() used to retrieve snippets from other places in WordPress has been deprecated. Please update any code you might have modified that uses this function to use PostSnippets::getSnippet() instead, which replaces the old function. get_post_snippet() will be removed in a future version. Most users are not affected by this change. 2.2 Note that at least WordPress v3.3 are required for Post Snippets v2.2. 2.3 The function get_post_snippet() used to retrieve snippets was deprecated in version 2.1. In this update it is now completely removed. Please update any code you might have that uses this function to use PostSnippets::getSnippet() instead, which replaces the deprecated function. Most users are not affected by this change. 2.3.6 The minimum required PHP version have changed from v5.2.4 to v5.3.0 with this update of Post Snippets to prepare for the next major release. Most servers should be using PHP v5.3.0 or newer by now, but if you are unsure what PHP version your server is using, please check before updating to this version of the plugin.

常见问题:

Where can I the documentation?

Documentation for the plugin is available directly from the Help panel in the plugin administration screen (top right corner of WordPress).

Why does importing Snippets on a Multisite installation fail?

Uploading of zip files must be allowed, enable this in Sites Network Admin > Settings > Upload Settings > Upload file types.

How can I use the content in an enclosed shortcode?

If the shortcode is enclosed and contains content between the tags in a post. Example: [shortcode]Some text[/shortcode] the text within will be available in a variable called content. So in your snippet use {content} to display it. Don't enter 'content' in the variable field, it's automatically assigned.

Where can I get support?

Please visit the Support Forum for questions, answers, support and feature requests.

Can I disable the PHP Code Execution feature?

To disable the "PHP Code" execution feature in this plugin, add the following code your theme's functions.php or to wp-config.php: define('POST_SNIPPETS_DISABLE_PHP', true); This is useful if you are using this plugin for client sites, and don't want your clients to be able to use PHP code in a post snippet.

更新日志:

Version 4.0.9 - 27 Jan 2025 Version 4.0.8 - 09 Dec 2024 Version 4.0.7 - 05 Nov 2024 Version 4.0.6 - 07 Aug 2024 Version 4.0.5 - 17 may 2024 Version 4.0.4 - 6 july 2023 Version 4.0.3 - 14 Feb 2023 Version 4.0.2 - 3 Jan 2023 Version 4.0.1 - 14 Dec 2022 Version 4.0.0 - 14 Jan 2021 Version 3.1.3 - 5 Mar 2021 Version 3.1.2 - 11 Nov 2020 Version 3.1.1 - 4 Nov 2020 Version 3.1 - 1 Sep 2020 Version 3.0.23 - 20 May 2020 Version 3.0.22 - 05 May 2020 Version 3.0.19 - 17 Apr 2020 Version 3.0.18 - 09 Apr 2020 Version 3.0.17 - 02 Apr 2020 Version 3.0.16 - 16 Mar 2020 Version 3.0.15 - 10 Mar 2020 Version 3.0.14 - 19 Nov 2019 Version 3.0.13 - 12 Nov 2019 Version 3.0.12 - 28 Aug 2019 Version 3.0.11 - 2 Lug 2019 Version 3.0.10 - 2 Lug 2019 Version 3.0.9 - 1 Lug 2019 Version 3.0.8 - 8 Apr 2019 Version 3.0.7 - 27 Feb 2019 Version 3.0.6 - 27 Feb 2019 Version 3.0.5 - 13 May 2018 Version 3.0.4 - 20 Feb 2018 Version 3.0.3 - 15 Feb 2018 Version 3.0.2 - 13 Jan 2018 Version 3.0.0 - 13 Jan 2018 Version 2.5.4 - 30 Nov 2017 Version 2.5.3 - 14 Feb 2016 Version 2.5.2 - 7 Feb 2016 Version 2.5.1 - 6 Feb 2016 Version 2.5 - 21 Jan 2016 Version 2.4 - 18 Dec 2015 Version 2.3.9 - 14 Dec 2015 Version 2.3.8 - 10 Dec 2015 Version 2.3.7 - 4 Nov 2015 Version 2.3.6 - 15 Jul 2015 Version 2.3.5 - 18 Jan 2015 Version 2.3.4 - 20 Sep 2014 Version 2.3.3 - 12 Apr 2014 Version 2.3.2 - 5 Aug 2013 Version 2.3.1 - 1 Jun 2013 Version 2.3 - 1 Jun 2013 Version 2.2.3 - 11 May 2013 Version 2.2.2 - 10 May 2013 Version 2.2.1 - 1 May 2013 Version 2.2 - 26 Apr 2013 Version 2.1.1 - 23 Feb 2013 Version 2.1 - 22 Feb 2013 Version 2.0 - 29 Mar 2012 Version 1.9.7 - 22 Mar 2012 Version 1.9.6 - 19 Mar 2012 Version 1.9.5 - 17 Mar 2012 Version 1.9.4 - 8 Feb 2012 Version 1.9.3 - 30 Jan 2012 Version 1.9.2 - 29 Jan 2012 Version 1.9.1 - 22 Jan 2012 Version 1.9 - 17 Jan 2012 Version 1.8.9.2 - 15 Jan 2012 Version 1.8.9.1 - 11 Jan 2012 Version 1.8.9 - 10 Jan 2012 Version 1.8.8 - 28 Dec 2011 Version 1.8.7 - 25 Dec 2011 Version 1.8.6 - 15 Dec 2011 Version 1.8.5 - 22 Nov 2011 Version 1.8.4 - 10 Nov 2011 Version 1.8.3 - 13 Oct 2011 Version 1.8.2 - 3 Sep 2011 Version 1.8.1 - 11 Jul 2011 Version 1.8 - 30 May 2011 Version 1.7.3 - 3 Mar 2011 Version 1.7.2 - 28 Feb 2011 Version 1.7.1 - 26 Feb 2011 Version 1.7 - 26 Feb 2011 Version 1.5.4 - 26 Jan 2011 Version 1.5.3 - 19 Sep 2010 Version 1.5.2 - 17 Sep 2010 Version 1.5.1 - 12 Mar 2010 Version 1.5 - 12 Jan 2010 Version 1.4.9.1 - 5 Sep 2009 Version 1.4.9 - 10 Aug 2009 Version 1.4.8 - 9 May 2009 Version 1.4.7 - 27 Apr 2009 Version 1.4.6 - 25 Apr 2009 Version 1.4.5 - 24 Apr 2009 Version 1.4.4 - 19 Apr 2009 Version 1.4.3 - 16 Apr 2009 Version 1.4.2 - 11 Apr 2009 Version 1.4.1 - 10 Apr 2009 Version 1.4 - 10 Apr 2009 Version 1.3.5 - 9 Apr 2009 Version 1.3 - 2 Apr 2009 Version 1.2 - 1 Apr 2009 Version 1.1 - 24 Mar 2009 Version 1.0 - 23 Mar 2009