advmceconf_is_mce_version_4

Plugin Name: Advanced TinyMCE Configuration Plugin URI: http://www.laptoptips.ca/projects/advanced-tinymce-configuration/ Description: Set advanced options for TinyMCE, the visual editor in WordPress.

Description

advmceconf_is_mce_version_4(); 

Version: 1.3 Author: Andrew Ozz Author URI: http://www.laptoptips.ca/ License: GPL2 License URI: https://www.gnu.org/licenses/gpl-2.0.html Text Domain: adv-mce-config Domain Path: /languages

Advanced TinyMCE Configuration is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or any later version.

Advanced TinyMCE Configuration is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Advanced TinyMCE Configuration. If not, see https://www.gnu.org/licenses/gpl-2.0.html.

Copyright 2011-2016 Andrew Ozz. All rights reserved.


Usage

  1. if ( !function_exists( 'advmceconf_is_mce_version_4' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'advanced-tinymce-configuration/adv-mce-config.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = advmceconf_is_mce_version_4(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/adv-mce-config.php  
  1. function advmceconf_is_mce_version_4() { 
  2. return ( isset( $GLOBALS['tinymce_version'] ) && substr( $GLOBALS['tinymce_version'], 0, 1 ) >= 4 );