24 lines
859 B
PHP
24 lines
859 B
PHP
<?php
|
|
|
|
class Wiaas_Admin_Delivery_Process {
|
|
|
|
public static function init() {
|
|
|
|
require_once dirname( __FILE__ ) . '/delivery-process/wiaas-admin-delivery-process-ajax.php';
|
|
require_once dirname( __FILE__ ) . '/delivery-process/class-wiaas-admin-delivery-process-flow.php';
|
|
require_once dirname( __FILE__ ) . '/delivery-process/class-wiaas-admin-delivery-process-order.php';
|
|
|
|
add_action( 'admin_enqueue_scripts', array(__CLASS__, 'enqueue_scripts'), 100 );
|
|
}
|
|
|
|
public static function enqueue_scripts() {
|
|
|
|
$plugin_url = untrailingslashit( plugins_url( '/', WIAAS_FILE ) );
|
|
|
|
wp_enqueue_script( 'wiaas_admin_delivery_process', $plugin_url . '/assets/js/wiaas-admin-delivery-process.js' );
|
|
wp_enqueue_style( 'wiaas_admin_delivery_process', $plugin_url . '/assets/css/wiaas-admin-delivery-process.css' );
|
|
}
|
|
}
|
|
|
|
Wiaas_Admin_Delivery_Process::init();
|