Keep a snippet library of text, HTML or PHP code to be used in posts. Variables can be set for more flexibility. Inserts directly or as shortcodes.
PostSnippets::getSnippet()as it was not needed.
PostSnippets::getSnippet($name, $variables)to be able to accept an array with variables and not only a querystring. Fixes issue #22.
get_post_snippet()which was deprecated in version 2.1.
define('POST_SNIPPETS_DISABLE_PHP', true);to wp-config.php or the theme's functions.php to disable PHP execution in the plugin.
edit_postscapability access to the Post Snippets Admin. Add
define('POST_SNIPPETS_ALLOW_EDIT_POSTS', true);to wp-config.php to enable access for those users. Fixes issue #12.
PostSnippets::getSnippet()now executes shortcodes within snippets.
get_post_snippet()used to retrieve snippets from other places in WordPress has been deprecated. Please update any code using 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.
edit_postscapability (authors, contributors, editors) can now see a read-only list of available snippets and related info.
label for=with checkboxes.
post_snippets_export. Read more.
Requires: 3.3 or higher
Compatible up to: 4.2.5
Last Updated: 2015-7-15
Active Installs: 20,000+
2 of 7 support threads in the last two months have been resolved.
Got something to say? Need help?