18 lines
440 B
PHP
18 lines
440 B
PHP
<?php
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* Registers styles for frontend and enqueues them when shortcodes are used.
|
|
*/
|
|
function statpress_enqueue_frontend_assets() {
|
|
// Register the stylesheet. It will be enqueued by the shortcodes when needed.
|
|
$plugin_version = '1.0';
|
|
wp_register_style(
|
|
'statpress-frontend-styles',
|
|
STATPRESS_PLUGIN_URL . 'assets/css/frontend.css',
|
|
array(),
|
|
$plugin_version
|
|
);
|
|
} |