Skip to content

Instantly share code, notes, and snippets.

@webdevs-pro
Forked from zzfortezz/base.php
Created August 8, 2019 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdevs-pro/56cebf84d96ae171a82cdcb1cc3f032e to your computer and use it in GitHub Desktop.
Save webdevs-pro/56cebf84d96ae171a82cdcb1cc3f032e to your computer and use it in GitHub Desktop.
<?php
public function enqueue_script(){
wp_register_script( 'general-script', EC_EXTENTIONS_URL . 'assets/js/script.js', [ 'jquery' ], EC_ELEMENTOR_VERSION, true );
}
public function register_frontend_styles(){
wp_register_style('general-style', EC_EXTENTIONS_URL . 'assets/css/general.css', array(), EC_ELEMENTOR_VERSION);
}
public function enqueue_frontend_styles(){
wp_enqueue_style('general-style');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment