March 2020
Beginner to intermediate
334 pages
7h 27m
English
The constructor is where we declare all of our integration information, load our settings, and add our own variables that the user can interact with. Follow these steps:
/** * Init and hook in the integration. */ public function __construct() { global $woocommerce; }
$this->id = 'integration-demo'; $this->method_title = __( 'Integration Demo', 'woocommerce- integration-demo' ); $this->method_description = __( 'An integration demo to show you how easy it is to extend WooCommerce.', 'woocommerce-integration-demo' );
Read now
Unlock full access