* @since 1.0.0 * @package core * @copyright (c) 2018, OnePress Ltd * */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Common Settings */ class WINP_AboutPage extends WINP_Page { /** * @param Wbcr_Factory422_Plugin $plugin */ public function __construct( Wbcr_Factory422_Plugin $plugin ) { $this->menu_post_type = WINP_SNIPPETS_POST_TYPE; $this->id = "about"; $this->menu_title = __( 'About', 'insert-php' ); parent::__construct( $plugin ); $this->plugin = $plugin; } public function indexAction() { global $wp_version; ?>
If you are a long-term user of the Insert php 1.3.0 plugin, you may
be confused
about the new plugin’s name and branding. We will try to clear this out for you.
The way how WordPress editor handled PHP code from Insert php before was incorrect and
unsafe. We
wanted to find a solution that will be suitable for both old and new Insert php users.
And we wanted
to give them a useful tool to work with snippets (pieces of code) and plain text.
Storing PHP in individual snippets was a more elegant solution because only administrators were able to modify the snippets. The plugin evolution to a snippet format has solved several important problems:
We considered all of the above when decided to update the Insert php plugin. Now our
plugin supports
not only a PHP code but HTML. JS, CSS code and text as well. Obviously, the name Php snippets
(Insert php) no longer suited the plugin.
So we’ve created a new name – Woody ad snippets. We are hoping that the new name didn’t cause you any pain. We won’t change the plugin name anymore, as we’ve scheduled a solid roadmap of the plugin development and plan to stick to it!
Hello Gutenberg! Creating the content becomes more simple and easy. You can forget about shortcodes to locate snippet and switch to the user-friendly blocks instead. Just create a snippet with the location scope through the shortcode, go to Gutenberg Editor and add a new Woody ad snippet block. Super easy!
This is a simple snippet type. It executes PHP code. Use this type to register functions, classes, and global variables. You can create false scenarios and use shortcodes to print them on pages.
This is the easiest snippet type. Here you can use text and HTML code only. It works as a classic editor TinyMCE. Use this type to create text blocks, media content, links, quotes, and inserts. You can locate this snippet type automatically or via shortcodes.
This is a complex snippet type where you can combine PHP, HTML, JavaScript, and CSS. We’ve created this type to insert ad codes, external widgets, complex HTML forms, Google analytics, Facebook pixels and so on. You can locate these snippets automatically or by shortcodes.
This is a new feature. It will save you many hours of hard work. Now you can locate a snippet on all or certain pages in a few clicks.
We’ve added a new way of snippet placement. Just set up the location spot and placement condition. The plugin will automatically install the snippet on the necessary pages. You can also remove snippet in a few clicks.
With the new auto location options the conditional logic features have been released. They allow you to hide or show snippets depend on conditions. For example, you can show a snippet to registered users only. Or, show it just to mobile users. Conditional logic helps you to filter pages where the snippet shouldn’t be used.
Snippet Export/Import is more user-friendly now. You don’t need to install additional plugins anymore. Just export all the necessary plugins or import them on another website. Additional import features prevent snippet duplication in case your website has already had this snippet.