1 <?php
 2 
 3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
 4 
 5 /**
 6  * WooCommerce Integration class
 7  *
 8  * Extended by individual integrations to offer additional functionality.
 9  *
10  * @class       WC_Integration
11  * @extends     WC_Settings_API
12  * @version     2.0.0
13  * @package     WooCommerce/Abstracts
14  * @category    Abstract Class
15  * @author      WooThemes
16  */
17 abstract class WC_Integration extends WC_Settings_API {
18 
19     /**
20      * Admin Options
21      *
22      * Setup the gateway settings screen.
23      * Override this in your gateway.
24      *
25      * @access public
26      * @return void
27      */
28     public function admin_options() { ?>
29 
30         <h3><?php echo isset( $this->method_title ) ? $this->method_title : __( 'Settings', 'woocommerce' ) ; ?></h3>
31 
32         <?php echo isset( $this->method_description ) ? wpautop( $this->method_description ) : ''; ?>
33 
34         <table class="form-table">
35             <?php $this->generate_settings_html(); ?>
36         </table>
37 
38         <!-- Section -->
39         <div><input type="hidden" name="section" value="<?php echo $this->id; ?>" /></div>
40 
41         <?php
42     }
43 }
WooCommerce API documentation generated by ApiGen 2.8.0