' . esc_html__( 'Stacklar Forms Pro is active, so Stacklar Forms is not running. Your forms keep working in Stacklar Forms Pro, and you can delete Stacklar Forms.', 'stacklar-forms' ) . '

'; } } add_action( 'admin_notices', 'stacklar_forms_render_pro_notice' ); add_action( 'network_admin_notices', 'stacklar_forms_render_pro_notice' ); return; } if ( version_compare( PHP_VERSION, '7.4', '<' ) ) { if ( ! function_exists( 'stacklar_render_php_version_notice' ) ) { function stacklar_render_php_version_notice() { global $pagenow; if ( 'plugins.php' !== $pagenow || ! current_user_can( 'activate_plugins' ) ) { return; } $message = sprintf( /* translators: %s: current PHP version. */ __( 'Stacklar Forms requires PHP 7.4 or newer. This site is running PHP %s.', 'stacklar-forms' ), PHP_VERSION ); echo '

' . esc_html( $message ) . '

'; } } add_action( 'admin_notices', 'stacklar_render_php_version_notice' ); add_action( 'network_admin_notices', 'stacklar_render_php_version_notice' ); return; } // Stacklar Forms Pro checks this constant to tell that Stacklar Forms has // already loaded in the request that activates it. define( 'STACKLAR_FORMS_FILE', __FILE__ ); define( 'STACKLAR_FILE', __FILE__ ); define( 'STACKLAR_PATH', plugin_dir_path( __FILE__ ) ); define( 'STACKLAR_URL', plugins_url( '/', __FILE__ ) ); define( 'STACKLAR_VERSION', '1.0.0' ); require_once STACKLAR_PATH . 'includes/bootstrap.php'; stacklar_load_dependencies(); require_once STACKLAR_PATH . 'includes/activation.php'; require_once STACKLAR_PATH . 'includes/runtime.php'; register_activation_hook( __FILE__, 'stacklar_activate_plugin' ); stacklar_boot_runtime();