src/classes/class-wp-enqueue-util.php
public function enqueue_style( WP_Enqueue_Options $options ) {

        if ( ! $options->have_required_properties() ) {

            trigger_error( 'Trying to enqueue style, but required properties are missing.' );

            return;

        }

        // Required options.
        $handle = $options->get_handle();
        $relative_path = $options->get_relative_path();
        $filename = $options->get_filename();

        // Optional options.
        $filename_debug = $options->get_filename_debug();
        $dependencies = $options->get_dependencies();
        $version = $options->get_version();
        $media = $options->get_media();

        $source = $this->get_source_to_enqueue( $relative_path, $filename, $filename_debug );

        wp_enqueue_style(
            $handle,
            $source,
            $dependencies,
            $version,
            $media
        );

    }
public function enqueue_style( WP_Enqueue_Options $options ) {

        if ( ! $options->have_required_properties() ) {

            trigger_error( 'Trying to enqueue style, but required properties are missing.' );

            return;

        }

        // Required options.
        $handle = $options->get_handle();
        $relative_path = $options->get_relative_path();
        $filename = $options->get_filename();

        // Optional options.
        $filename_debug = $options->get_filename_debug();
        $dependencies = $options->get_dependencies();
        $version = $options->get_version();
        $media = $options->get_media();

        $source = $this->get_source_to_enqueue( $relative_path, $filename, $filename_debug );

        wp_enqueue_style(
            $handle,
            $source,
            $dependencies,
            $version,
            $media
        );

    }
public function enqueue_style ( WP_Enqueue_Options $ options ) { if ( ! $ options -> have_required_properties ( ) ) { trigger_error ( 'Trying to enqueue style, but required properties are missing.' ) ; return ; } // Required options. $ handle = $ options -> get_handle ( ) ; $ relative_path = $ options -> get_relative_path ( ) ; $ filename = $ options -> get_filename ( ) ; // Optional options. $ filename_debug = $ options -> get_filename_debug ( ) ; $ dependencies = $ options -> get_dependencies ( ) ; $ version = $ options -> get_version ( ) ; $ media = $ options -> get_media ( ) ; $ source = $ this -> get_source_to_enqueue ( $ relative_path , $ filename , $ filename_debug ) ; wp_enqueue_style ( $ handle , $ source , $ dependencies , $ version , $ media ) ; }
A convenience function for enqueuing styles.

Will automatically enqueue compiled or minified source, depending on debug configuration.

@param WP_Enqueue_Options $options Options to enqueue styles with.
A convenience function for enqueuing styles .