diff --git a/class-merlin.php b/class-merlin.php index a62423e..a5fc120 100755 --- a/class-merlin.php +++ b/class-merlin.php @@ -446,6 +446,12 @@ public function admin_page() { // Enqueue styles. wp_enqueue_style( 'merlin', trailingslashit( $this->base_url ) . $this->directory . '/assets/css/merlin' . $suffix . '.css', array( 'wp-admin' ), MERLIN_VERSION ); + // Optional custom stylesheet loader + $custom_stylesheet = apply_filters( 'merlin_custom_stylesheet', '' ); + if ( ! empty( $custom_stylesheet ) ) { + wp_enqueue_style( 'merlin-additional', $custom_stylesheet, array( 'wp-admin', 'merlin' ), MERLIN_VERSION ); + } + // Enqueue javascript. wp_enqueue_script( 'merlin', trailingslashit( $this->base_url ) . $this->directory . '/assets/js/merlin' . $suffix . '.js', array( 'jquery-core' ), MERLIN_VERSION );