# wpgetapi/1.4.6/includes/class-enqueues.php

WPGet API – Connect to any external REST API, version 1.4.6. 39 lines.

- Page: https://pluginprobe.com/plugins/wpgetapi/1.4.6/code/includes/class-enqueues.php
- Raw: https://pluginprobe.com/plugins/wpgetapi/1.4.6/raw/includes/class-enqueues.php
- Modified: 2022-05-24T04:31:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpgetapi/1.4.6/code/includes/class-enqueues.php#L10-L20`.

```php
<?php

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;

/**
 * The main class
 *
 * @since 1.4.4
 */
class WpGetApi_Api_Enqueues {


	/**
     * Main constructor
     *
     * @since 1.4.4
     *
     */
    public function __construct() {

        add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts_styles' ) );

    }

	/**
	 * Enqueue scripts and styles.
	 */
	public function admin_scripts_styles() {
	    $v = WPGETAPIVERSION;
	    $v = time();
	    wp_enqueue_style( 'wpgetapi-style', WPGETAPIURL .'assets/css/wpgetapi-admin.css', false, $v );
	    wp_enqueue_script( 'wpgetapi-script', WPGETAPIURL .'assets/js/wpgetapi-admin.js', array( 'jquery' ), $v );

	}

}

return new WpGetApi_Api_Enqueues();
```
