/** * Initializes and loads the plugin late stages. * * @since 1.0.0 */ public function post_init() { /** * Defaults for the shortcode. * * Allows external plugins to modify the defaults for a Render shortcode setup. * * @since 1.0.0 */ self::$shortcode_defaults = apply_filters('render_shortcode_defaults', array('function' => '', 'title' => '', 'description' => '', 'source' => __('Unknown', 'Render'), 'tags' => '', 'category' => 'other', 'atts' => array(), 'wrapping' => false, 'render' => false, 'noDisplay' => false)); /** * Defaults for a shortcode attribute. * * Allows external plugins to modify defaults for a Render shortcode attribute. * * @since 1.0.0 */ self::$att_defaults = apply_filters('render_shortcode_att_defaults', array('label' => false, 'description' => false, 'required' => false, 'type' => 'textbox', 'properties' => array(), 'validate' => false, 'sanitize' => false, 'conditional' => false, 'default' => false, 'advanced' => false, 'callback' => false, 'descriptionAbove' => false, 'descriptionBelow' => true, 'initCallback' => false, 'noInit' => false)); // Add shortcodes $this->add_shortcodes(); // Remove disabled shortcodes if (!is_admin()) { $this->remove_disabled_shortcodes(); } // Licensing require_once __DIR__ . '/core/licensing/licensing.php'; // Pointers add_filter('current_screen', array($this, '_pointers'), 1); }