Changeset 1826341
- Timestamp:
- 02/21/2018 04:34:14 PM (8 years ago)
- Location:
- woorocks-magic-content/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
woorocks-magic-content.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woorocks-magic-content/trunk/readme.txt
r1825362 r1826341 4 4 Tags: woorocks, elementor, page builder, magic content 5 5 Requires at least: 4.3 6 Tested up to: 4. 76 Tested up to: 4.9.4 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 136 136 Added funtion to disable plugin in admin areas. 137 137 138 = 1.0.16 = 139 Changed the behaviour of plugin activation to support latest WP and Elementor. 140 138 141 == Upgrade Notice == 139 142 … … 185 188 = 1.0.15 = 186 189 Added funtion to disable plugin in admin areas. 190 191 = 1.0.16 = 192 Changed the behaviour of plugin activation to support latest WP and Elementor. -
woorocks-magic-content/trunk/woorocks-magic-content.php
r1825362 r1826341 4 4 * Plugin URI: http://woorocks.com 5 5 * 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.1 56 * Version: 1.0.16 7 7 * Author: Andreas Kviby 8 8 * Text Domain: woorocks-magic-content … … 191 191 */ 192 192 function woorocks_load_plugin_textdomain() { 193 if( false === $is_admin ){194 193 load_plugin_textdomain( 'woorocks-magic-content' ); 195 } 194 196 195 } 197 196 /* … … 200 199 */ 201 200 function woorocks_buffer_start() { 202 if ( false === $is_admin && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX )){203 201 ob_start("woorocks_callback"); 204 }205 202 } 206 203 207 204 function woorocks_buffer_end() { 208 if (false === $is_admin && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX )){209 205 ob_end_flush(); 210 206 //$output = $GLOBALS['woorocks_buffer_variable']; 211 }212 207 } 213 208 function woorocks_callback($buffer) { 214 if (false === $is_admin && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX )){215 209 // modify buffer here, and then return the updated code 216 210 //$GLOBALS['final_html'] .= $buffer; … … 271 265 return $doc->saveHTML($doc); 272 266 } 273 } 267 274 268 // add filter in front pages only 275 269 if( false === $is_admin ){
Note: See TracChangeset
for help on using the changeset viewer.