parsers
9 months ago
admin.php
7 months ago
core.php
6 months ago
engine.php
6 months ago
init.php
7 months ago
parsers.php
10 months ago
rest.php
6 months ago
support.php
6 months ago
ui.php
3 years ago
support.php
283 lines
| 1 | <?php |
| 2 | |
| 3 | class Meow_WPMC_Support { |
| 4 | |
| 5 | static function get_natives() { |
| 6 | $natives = array(); |
| 7 | |
| 8 | if ( class_exists( 'WooCommerce' ) ) |
| 9 | array_push( $natives, 'WooCommerce' ); |
| 10 | |
| 11 | if ( class_exists( 'Attachments' ) ) |
| 12 | array_push( $natives, 'Attachments' ); |
| 13 | |
| 14 | if ( class_exists( 'MetaSliderPlugin' ) || class_exists( 'MetaSliderPro' ) ) |
| 15 | array_push( $natives, 'Meta Slider' ); |
| 16 | |
| 17 | if ( function_exists( 'mc_show_sidebar' ) ) |
| 18 | array_push( $natives, 'My Calendar' ); |
| 19 | |
| 20 | if ( class_exists( 'Mega_Menu' ) ) |
| 21 | array_push( $natives, 'Mega Menu' ); |
| 22 | |
| 23 | if ( class_exists( 'WPSEO_Options' ) ) |
| 24 | array_push( $natives, 'Yoast SEO' ); |
| 25 | |
| 26 | if ( class_exists( 'Meow_MGL_Core' ) ) |
| 27 | array_push( $natives, 'Meow Gallery' ); |
| 28 | |
| 29 | return $natives; |
| 30 | } |
| 31 | |
| 32 | static function get_issues() { |
| 33 | $unsupported = array(); |
| 34 | |
| 35 | if ( class_exists( 'ACF' ) ) |
| 36 | array_push( $unsupported, 'ACF' ); |
| 37 | |
| 38 | if ( function_exists( 'acfw_globals' ) ) |
| 39 | array_push( $unsupported, 'ACF Widgets' ); |
| 40 | |
| 41 | if ( function_exists( '_et_core_find_latest' ) ) |
| 42 | array_push( $unsupported, 'Divi' ); |
| 43 | |
| 44 | if ( class_exists( 'Vc_Manager' ) ) |
| 45 | array_push( $unsupported, 'Visual Composer' ); |
| 46 | |
| 47 | if ( defined( 'FUSION_BUILDER_VERSION' ) || defined( 'FUSION_CORE_VERSION' ) || has_action( 'avada_author_info' ) ) |
| 48 | array_push( $unsupported, 'Fusion Builder' ); |
| 49 | |
| 50 | if ( defined( 'ELEMENTOR_VERSION' ) ) |
| 51 | array_push( $unsupported, 'Elementor' ); |
| 52 | |
| 53 | if ( class_exists( 'FLBuilderModel' ) ) |
| 54 | array_push( $unsupported, 'Beaver Builder' ); |
| 55 | |
| 56 | if ( class_exists( 'Oxygen_VSB_Dynamic_Shortcodes' ) ) |
| 57 | array_push( $unsupported, 'Oxygen Builder' ); |
| 58 | |
| 59 | if ( class_exists( 'Brizy_Editor_Post' ) ) |
| 60 | array_push( $unsupported, 'Brizy Editor' ); |
| 61 | |
| 62 | if ( function_exists( 'amd_zlrecipe_convert_to_recipe' ) ) |
| 63 | array_push( $unsupported, 'ZipList Recipe' ); |
| 64 | |
| 65 | if ( class_exists( 'UberMenu' ) ) |
| 66 | array_push( $unsupported, 'UberMenu' ); |
| 67 | |
| 68 | if ( class_exists( 'X_Bootstrap' ) ) |
| 69 | array_push( $unsupported, 'Theme X' ); |
| 70 | |
| 71 | if ( class_exists( 'Easy_Real_Estate' ) ) |
| 72 | array_push( $unsupported, 'Easy Real Estate' ); |
| 73 | |
| 74 | if ( class_exists( 'SiteOrigin_Panels' ) ) |
| 75 | array_push( $unsupported, 'SiteOrigin PageBuilder' ); |
| 76 | |
| 77 | if ( defined( 'TASTY_PINS_PLUGIN_FILE' ) ) |
| 78 | array_push( $unsupported, 'Tasty Pins' ); |
| 79 | |
| 80 | if ( class_exists( 'WCFMmp' ) ) |
| 81 | array_push( $unsupported, 'WCFM Marketplace' ); |
| 82 | |
| 83 | if ( class_exists( 'RevSliderFront' ) ) |
| 84 | array_push( $unsupported, 'Revolution Slider' ); |
| 85 | |
| 86 | if ( defined( 'WPESTATE_PLUGIN_URL' ) ) |
| 87 | array_push( $unsupported, 'WP Residence' ); |
| 88 | |
| 89 | if ( defined( 'AV_FRAMEWORK_VERSION' ) ) |
| 90 | array_push( $unsupported, 'Avia Framework' ); |
| 91 | |
| 92 | if ( class_exists( 'FAT_Portfolio' ) ) |
| 93 | array_push( $unsupported, 'FAT Portfolio' ); |
| 94 | |
| 95 | if ( class_exists( 'YIKES_Custom_Product_Tabs' ) ) |
| 96 | array_push( $unsupported, 'Yikes Custom Product Tabs' ); |
| 97 | |
| 98 | if ( function_exists( 'drts' ) ) |
| 99 | array_push( $unsupported, 'Directories' ); |
| 100 | |
| 101 | if ( class_exists( 'ImageMapPro' ) ) |
| 102 | array_push( $unsupported, 'Image Map Pro' ); |
| 103 | |
| 104 | if ( class_exists( 'YOOtheme\\Builder' ) ) { |
| 105 | array_push( $unsupported, 'YooTheme Builder' ); |
| 106 | } |
| 107 | |
| 108 | if ( class_exists( 'geodirectory' ) ) { |
| 109 | array_push( $unsupported, 'GeoDirectory' ); |
| 110 | } |
| 111 | |
| 112 | if ( class_exists( 'Modula' ) ) { |
| 113 | array_push( $unsupported, 'Modula Gallery' ); |
| 114 | } |
| 115 | |
| 116 | if ( class_exists( 'JustifiedImageGrid' ) ) { |
| 117 | array_push( $unsupported, 'Justified Image Grid' ); |
| 118 | } |
| 119 | |
| 120 | if ( class_exists( 'Advanced_Ads' ) ) { |
| 121 | array_push( $unsupported, 'Advanced Ads' ); |
| 122 | } |
| 123 | |
| 124 | if ( defined( 'SMARTSLIDER3_LIBRARY_PATH' ) ) { |
| 125 | array_push( $unsupported, 'Smart Slider' ); |
| 126 | } |
| 127 | |
| 128 | if ( class_exists( 'w2dc_plugin' ) ) { |
| 129 | array_push( $unsupported, 'WebDirectory' ); |
| 130 | } |
| 131 | |
| 132 | if ( class_exists( 'ElfsightSliderPlugin' ) ) { |
| 133 | array_push( $unsupported, 'Elfsight Slider' ); |
| 134 | } |
| 135 | |
| 136 | if ( class_exists( '\Nimble\CZR_Fmk_Base' ) ) { |
| 137 | array_push( $unsupported, 'Nimble Builder' ); |
| 138 | } |
| 139 | |
| 140 | if ( class_exists( 'fwds3dcar' ) ) { |
| 141 | array_push( $unsupported, 'Simple 3D Carousel' ); |
| 142 | } |
| 143 | |
| 144 | if ( class_exists( 'Jet_Engine' ) ) { |
| 145 | array_push( $unsupported, 'Jet Engine' ); |
| 146 | } |
| 147 | |
| 148 | if ( class_exists( 'Social_Warfare' ) ) { |
| 149 | array_push( $unsupported, 'Social Warfare' ); |
| 150 | } |
| 151 | |
| 152 | if ( class_exists( 'WP_Job_Manager' ) ) { |
| 153 | array_push( $unsupported, 'WP Job Manager' ); |
| 154 | } |
| 155 | |
| 156 | if ( class_exists( 'WpdiscuzCore' ) ) { |
| 157 | array_push( $unsupported, 'wpDiscuz' ); |
| 158 | } |
| 159 | |
| 160 | if ( class_exists( 'Cornerstone_Plugin' ) ) { |
| 161 | array_push( $unsupported, 'Cornerstone' ); |
| 162 | } |
| 163 | |
| 164 | if ( class_exists( 'WP_DLM' ) ) { |
| 165 | array_push( $unsupported, 'Download Monitor' ); |
| 166 | } |
| 167 | |
| 168 | if ( class_exists( 'CMBusinessDirectory' ) ) { |
| 169 | array_push( $unsupported, 'CM Business Directory' ); |
| 170 | } |
| 171 | |
| 172 | if ( class_exists( 'SunshineCart' ) ) { |
| 173 | array_push( $unsupported, 'Sunshine Photo Cart' ); |
| 174 | } |
| 175 | |
| 176 | if ( defined( 'WOODMART_CORE_VERSION' ) ) { |
| 177 | array_push( $unsupported, 'Woodmart Theme' ); |
| 178 | } |
| 179 | |
| 180 | if ( class_exists( 'BWG' ) ) { |
| 181 | array_push( $unsupported, 'Photo Gallery (10Web)' ); |
| 182 | } |
| 183 | |
| 184 | if ( class_exists( 'Google\Web_Stories\Plugin' ) ) { |
| 185 | array_push( $unsupported, 'Web Stories' ); |
| 186 | } |
| 187 | |
| 188 | if ( function_exists( 'rwmb_get_object_fields' ) ) { |
| 189 | array_push( $unsupported, 'Metabox' ); |
| 190 | } |
| 191 | |
| 192 | if ( defined( 'URIS_PLUGIN_URL' ) ) { |
| 193 | array_push( $unsupported, 'Ultimate Responsive Image Slider' ); |
| 194 | } |
| 195 | |
| 196 | if ( defined( 'PRESTO_PLAYER_PLUGIN_URL' ) ) { |
| 197 | array_push( $unsupported, 'Presto Player' ); |
| 198 | } |
| 199 | |
| 200 | if ( defined( 'GG_VER' ) ) { |
| 201 | array_push( $unsupported, 'Global Gallery' ); |
| 202 | } |
| 203 | |
| 204 | if ( defined( 'LANA_DOWNLOADS_MANAGER_VERSION' ) ) { |
| 205 | array_push( $unsupported, 'Lana Downloads Manager' ); |
| 206 | } |
| 207 | |
| 208 | if ( defined( 'POWERPRESS_VERSION' ) ) { |
| 209 | array_push( $unsupported, 'Powerpress' ); |
| 210 | } |
| 211 | |
| 212 | if ( class_exists( 'Connections_Directory' ) ) { |
| 213 | array_push( $unsupported, 'Connections Business Directory' ); |
| 214 | } |
| 215 | |
| 216 | if ( defined( 'WONDERPLUGIN_3DCAROUSEL_VERSION' ) ) { |
| 217 | array_push( $unsupported, 'WonderPlugin 3D Carousel' ); |
| 218 | } |
| 219 | |
| 220 | if ( defined( 'UNCODE_CORE_FILE' ) ) { |
| 221 | array_push( $unsupported, 'Uncode' ); |
| 222 | } |
| 223 | |
| 224 | if ( defined( 'MAILPOET_MINIMUM_REQUIRED_WP_VERSION' ) ) { |
| 225 | array_push( $unsupported, 'Mailpoet' ); |
| 226 | } |
| 227 | |
| 228 | if ( defined( 'ACADEMY_VERSION' ) ) { |
| 229 | array_push( $unsupported, 'Academy LMS' ); |
| 230 | } |
| 231 | |
| 232 | if ( defined( 'BREAKDANCE_PLUGIN_URL' ) ) { |
| 233 | array_push( $unsupported, 'Breakdance Builder' ); |
| 234 | } |
| 235 | |
| 236 | if ( defined( 'BRICKS_VERSION' ) ) { |
| 237 | array_push( $unsupported, 'Bricks Builder' ); |
| 238 | } |
| 239 | |
| 240 | // W3 Total Cache |
| 241 | if ( defined( 'W3TC_VERSION' ) ) { |
| 242 | array_push( $unsupported, 'W3 Total Cache' ); |
| 243 | } |
| 244 | |
| 245 | // Spectra |
| 246 | if ( defined( 'UAGB_PLUGIN_SHORT_NAME' ) ) { |
| 247 | array_push( $unsupported, 'Spectra' ); |
| 248 | } |
| 249 | |
| 250 | // Foo Gallery |
| 251 | if ( defined( 'FOOGALLERY_VERSION' ) ) { |
| 252 | array_push( $unsupported, 'Foo Gallery' ); |
| 253 | } |
| 254 | |
| 255 | // Tutor LMS |
| 256 | if ( defined( 'TUTOR_VERSION' ) ) { |
| 257 | array_push( $unsupported, 'Tutor LMS' ); |
| 258 | } |
| 259 | |
| 260 | // Houzez |
| 261 | if ( defined( 'HOUZEZ_THEME_VERSION' ) ) { |
| 262 | array_push( $unsupported, 'Houzez' ); |
| 263 | } |
| 264 | |
| 265 | // Kadence Blocks |
| 266 | if ( defined( 'KADENCE_BLOCKS_VERSION' ) ) { |
| 267 | array_push( $unsupported, 'Kadence Blocks' ); |
| 268 | } |
| 269 | |
| 270 | // FLuent Forms |
| 271 | if ( defined( 'FLUENTFORM_VERSION' ) ) { |
| 272 | array_push( $unsupported, 'Fluent Forms' ); |
| 273 | } |
| 274 | |
| 275 | //Toolset |
| 276 | if ( defined( 'TYPES_VERSION' ) || defined( 'WPCF_VERSION' ) ) { |
| 277 | array_push( $unsupported, 'Toolset' ); |
| 278 | } |
| 279 | |
| 280 | return $unsupported; |
| 281 | } |
| 282 | } |
| 283 | ?> |