Gruby refaktor
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers styles for frontend and enqueues them when shortcodes are used.
|
||||
*/
|
||||
function mystat_enqueue_frontend_assets() {
|
||||
// Register the stylesheet. It will be enqueued by the shortcodes when needed.
|
||||
$plugin_version = '1.0';
|
||||
wp_register_style(
|
||||
'mystat-frontend-styles',
|
||||
MYSTAT_PLUGIN_URL . 'assets/css/frontend.css',
|
||||
array(),
|
||||
$plugin_version
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user