__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Abstract Integration class
*
* Extension of the Settings API which in turn gets extended
* by individual integrations to offer additional functionality.
*
* @class WC_Settings_API
* @version 2.6.0
* @package WooCommerce\Abstracts
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Abstract Integration Class
*
* Extended by individual integrations to offer additional functionality.
*
* @class WC_Integration
* @extends WC_Settings_API
* @version 2.6.0
* @package WooCommerce\Abstracts
*/
abstract class WC_Integration extends WC_Settings_API {
/**
* Yes or no based on whether the integration is enabled.
*
* @var string
*/
public $enabled = 'yes';
/**
* Integration title.
*
* @var string
*/
public $method_title = '';
/**
* Integration description.
*
* @var string
*/
public $method_description = '';
/**
* Return the title for admin screens.
*
* @return string
*/
public function get_method_title() {
return apply_filters( 'woocommerce_integration_title', $this->method_title, $this );
}
/**
* Return the description for admin screens.
*
* @return string
*/
public function get_method_description() {
return apply_filters( 'woocommerce_integration_description', $this->method_description, $this );
}
/**
* Output the gateway settings screen.
*/
public function admin_options() {
echo '<h2>' . esc_html( $this->get_method_title() ) . '</h2>';
echo wp_kses_post( wpautop( $this->get_method_description() ) );
echo '<div><input type="hidden" name="section" value="' . esc_attr( $this->id ) . '" /></div>';
parent::admin_options();
}
/**
* Init settings for gateways.
*/
public function init_settings() {
parent::init_settings();
$this->enabled = ! empty( $this->settings['enabled'] ) && 'yes' === $this->settings['enabled'] ? 'yes' : 'no';
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| abstract-wc-address-provider.php | File | 648 B | 0664 |
|
| abstract-wc-data.php | File | 24.94 KB | 0664 |
|
| abstract-wc-deprecated-hooks.php | File | 3.11 KB | 0664 |
|
| abstract-wc-integration.php | File | 1.84 KB | 0664 |
|
| abstract-wc-log-handler.php | File | 2.5 KB | 0664 |
|
| abstract-wc-object-query.php | File | 1.94 KB | 0664 |
|
| abstract-wc-order.php | File | 80.76 KB | 0664 |
|
| abstract-wc-payment-gateway.php | File | 17.68 KB | 0664 |
|
| abstract-wc-payment-token.php | File | 5.67 KB | 0664 |
|
| abstract-wc-privacy.php | File | 3.85 KB | 0664 |
|
| abstract-wc-product.php | File | 68.37 KB | 0664 |
|
| abstract-wc-session.php | File | 2.9 KB | 0664 |
|
| abstract-wc-settings-api.php | File | 31.74 KB | 0664 |
|
| abstract-wc-shipping-method.php | File | 16.49 KB | 0664 |
|
| abstract-wc-widget.php | File | 12.17 KB | 0664 |
|
| class-wc-background-process.php | File | 4.87 KB | 0664 |
|