id = 'custom_js';
$this->short_desc = __( 'Custom JS', 'woocommerce-jetpack' );
$this->desc = __( 'Separate custom JS for front and back end.', 'woocommerce-jetpack' );
$this->link_slug = 'woocommerce-booster-custom-js';
parent::__construct();
if ( $this->is_enabled() ) {
if ( '' != get_option( 'wcj_custom_js_frontend', '' ) ) {
add_action( 'wp_head', array( $this, 'custom_frontend_js' ) );
}
if ( '' != get_option( 'wcj_custom_js_backend', '' ) ) {
add_action( 'admin_head', array( $this, 'custom_backend_js' ) );
}
}
}
/**
* custom_frontend_js.
*
* @version 2.9.1
* @since 2.8.0
*/
function custom_frontend_js() {
echo '';
}
/**
* custom_backend_js.
*
* @version 2.9.1
* @since 2.8.0
*/
function custom_backend_js() {
echo '';
}
}
endif;
return new WCJ_Custom_JS();