Plugin Directory

Changeset 1826341


Ignore:
Timestamp:
02/21/2018 04:34:14 PM (8 years ago)
Author:
andreaskviby
Message:

New version for activation

Location:
woorocks-magic-content/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woorocks-magic-content/trunk/readme.txt

    r1825362 r1826341  
    44Tags: woorocks, elementor, page builder, magic content
    55Requires at least: 4.3
    6 Tested up to: 4.7
     6Tested up to: 4.9.4
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    136136Added funtion to disable plugin in admin areas.
    137137
     138= 1.0.16 =
     139Changed the behaviour of plugin activation to support latest WP and Elementor.
     140
    138141== Upgrade Notice ==
    139142
     
    185188= 1.0.15 =
    186189Added funtion to disable plugin in admin areas.
     190
     191= 1.0.16 =
     192Changed the behaviour of plugin activation to support latest WP and Elementor.
  • woorocks-magic-content/trunk/woorocks-magic-content.php

    r1825362 r1826341  
    44 * Plugin URI: http://woorocks.com
    55 * Description: WooRocks Magic Content lets you control output of content created inside Elementor Page Builder Sections using criterias like User has to be logged in or member of a certain role in WordPress to view the section.
    6  * Version: 1.0.15
     6 * Version: 1.0.16
    77 * Author: Andreas Kviby
    88 * Text Domain: woorocks-magic-content
     
    191191  */
    192192function woorocks_load_plugin_textdomain() {
    193   if( false === $is_admin ){
    194193   load_plugin_textdomain( 'woorocks-magic-content' );
    195   }
     194
    196195}
    197196/*
     
    200199*/
    201200function woorocks_buffer_start() {
    202   if ( false === $is_admin && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX )){
    203201    ob_start("woorocks_callback");
    204    }
    205202}
    206203
    207204function woorocks_buffer_end() {
    208   if (false === $is_admin && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX )){
    209205   ob_end_flush();
    210206   //$output = $GLOBALS['woorocks_buffer_variable'];
    211  }
    212207}
    213208function woorocks_callback($buffer) {
    214   if (false === $is_admin && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX )){
    215209  // modify buffer here, and then return the updated code
    216210  //$GLOBALS['final_html'] .= $buffer;
     
    271265    return $doc->saveHTML($doc);
    272266  }
    273 }
     267
    274268// add filter in front pages only
    275269if( false === $is_admin ){
Note: See TracChangeset for help on using the changeset viewer.