show_notice_premium_users = false; } if(!defined("PIEREG_IS_ACTIVE")) define( 'PIEREG_IS_ACTIVE', false ); if ( ! function_exists( 'is_plugin_active' ) ) { include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); } //pie-register-woocommerce addon if( is_plugin_active( 'woocommerce/woocommerce.php') && is_plugin_active('pie-register-woocommerce/pie-register-woocommerce.php') && get_option('piereg_api_manager_addon_WooCommerce_activated') == "Activated" ) { $this->woocommerce_and_piereg_wc_addon_active = true; } //pie-register-bbpress addon if( is_plugin_active('bbpress/bbpress.php') && is_plugin_active('pie-register-bbpress/pie-register-bbpress.php') && get_option('piereg_api_manager_addon_Bbpress_activated') == "Activated" ) { $this->piereg_bbpress_addon_active = true; } //pie-register-field-visibility addon if( is_plugin_active('pie-register-field-visibility/pie-register-field-visibility.php') && get_option('piereg_api_manager_addon_Field_Visibility_activated') == "Activated" ) { $this->piereg_field_visbility_addon_active = true; } } public function pie_get_admin_path() { // Replace the site base URL with the absolute path to its installation directory. $admin_path = str_replace( get_bloginfo( 'wpurl' ) . '/', ABSPATH, get_admin_url() ); if( $admin_path == get_admin_url() ) { return ABSPATH . 'wp-admin/'; } // Make it filterable, so other plugins can hook into it. $admin_path = apply_filters( 'pie_get_admin_path', $admin_path ); return $admin_path; } function piereg_pro_is_activate(){ return false; } } }