X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/popup-maker/classes/Abstract
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
popup-maker
/
classes
/
Abstract
/
ðŸ“
..
ðŸ“
Batch
📄
Database.php
(14.38 KB)
ðŸ“
Integration
📄
Integration.php
(469 B)
ðŸ“
Model
📄
Provider.php
(10.3 KB)
📄
Registry.php
(1.93 KB)
ðŸ“
Repository
ðŸ“
Upgrade
📄
Upgrade.php
(906 B)
Editing: Upgrade.php
<?php /** * Abstract class for Upgrade * * @package PopupMaker * @copyright Copyright (c) 2024, Code Atlantic LLC */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Implements a basic upgrade process. * * Handles marking complete and resume management. * * @since 1.7.0 */ abstract class PUM_Abstract_Upgrade extends PUM_Abstract_Batch_Process { /** * Store the current upgrade args in case we need to redo somehting * * @param int $step */ public function __construct( $step = 1 ) { update_option( 'pum_doing_upgrade', [ 'upgrade_id' => $this->batch_id, 'step' => $step, ] ); parent::__construct( $step ); } /** * Defines logic to execute once batch processing is complete. */ public function finish() { /** * Clear the doing upgrade flag to prevent issues later. */ delete_option( 'pum_doing_upgrade' ); parent::finish(); } }
Upload File
Create Folder