public function enqueueStyles($styles)
    {
        // Check styles
        if (empty($styles)) {
            return;
        }

        $defaults = [
            'src'   => false,
            'deps'  => [],
            'ver'   => false,
            'media' => 'all'
        ];

        // Iterate on all
        foreach ($styles as $handle => $opts) {
            if (!is_array($opts)) {
                continue;
            }

            // Merge options with defaults and enqueue style
            $opts = array_merge($defaults, $opts);
            wp_enqueue_style($handle, $opts['src'], $opts['deps'], $opts['ver'], $opts['media']);
        }
    }
public function enqueueStyles($styles)
    {
        // Check styles
        if (empty($styles)) {
            return;
        }

        $defaults = [
            'src'   => false,
            'deps'  => [],
            'ver'   => false,
            'media' => 'all'
        ];

        // Iterate on all
        foreach ($styles as $handle => $opts) {
            if (!is_array($opts)) {
                continue;
            }

            // Merge options with defaults and enqueue style
            $opts = array_merge($defaults, $opts);
            wp_enqueue_style($handle, $opts['src'], $opts['deps'], $opts['ver'], $opts['media']);
        }
    }
public function enqueueStyles ( $ styles ) { // Check styles if ( empty ( $ styles ) ) { return ; } $ defaults = [ 'src' => false , 'deps' => [ ] , 'ver' => false , 'media' => 'all' ] ; // Iterate on all foreach ( $ styles as $ handle => $ opts ) { if ( ! is_array ( $ opts ) ) { continue ; } // Merge options with defaults and enqueue style $ opts = array_merge ( $ defaults , $ opts ) ; wp_enqueue_style ( $ handle , $ opts [ 'src' ] , $ opts [ 'deps' ] , $ opts [ 'ver' ] , $ opts [ 'media' ] ) ; } }
Enqueue styles.

@param array $styles
Enqueue styles .