print_late_styles

The timeline below displays how wordpress function print_late_styles has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.6

/**
 * Prints the styles that were queued too late for the HTML head.
 *
 * @since 3.3.0
 *
 * @global WP_Styles $wp_styles
 * @global bool      $concatenate_scripts
 *
 * @return array|void
 */
function print_late_styles()
{
    global $wp_styles, $concatenate_scripts;
    if (!$wp_styles instanceof WP_Styles) {
        return;
    }
    script_concat_settings();
    $wp_styles->do_concat = $concatenate_scripts;
    $wp_styles->do_footer_items();
    /**
     * Filters whether to print the styles queued too late for the HTML head.
     *
     * @since 3.3.0
     *
     * @param bool $print Whether to print the 'late' styles. Default true.
     */
    if (apply_filters('print_late_styles', true)) {
        _print_styles();
    }
    $wp_styles->reset();
    return $wp_styles->done;
}

WordPress Version: 4.5

/**
 * Prints the styles that were queued too late for the HTML head.
 *
 * @since 3.3.0
 *
 * @global WP_Styles $wp_styles
 * @global bool      $concatenate_scripts
 *
 * @return array|void
 */
function print_late_styles()
{
    global $wp_styles, $concatenate_scripts;
    if (!$wp_styles instanceof WP_Styles) {
        return;
    }
    script_concat_settings();
    $wp_styles->do_concat = $concatenate_scripts;
    $wp_styles->do_footer_items();
    /**
     * Filter whether to print the styles queued too late for the HTML head.
     *
     * @since 3.3.0
     *
     * @param bool $print Whether to print the 'late' styles. Default true.
     */
    if (apply_filters('print_late_styles', true)) {
        _print_styles();
    }
    $wp_styles->reset();
    return $wp_styles->done;
}

WordPress Version: 4.3

/**
 * Prints the styles that were queued too late for the HTML head.
 *
 * @since 3.3.0
 *
 * @global WP_Styles $wp_styles
 * @global bool      $concatenate_scripts
 *
 * @return array|void
 */
function print_late_styles()
{
    global $wp_styles, $concatenate_scripts;
    if (!$wp_styles instanceof WP_Styles) {
        return;
    }
    $wp_styles->do_concat = $concatenate_scripts;
    $wp_styles->do_footer_items();
    /**
     * Filter whether to print the styles queued too late for the HTML head.
     *
     * @since 3.3.0
     *
     * @param bool $print Whether to print the 'late' styles. Default true.
     */
    if (apply_filters('print_late_styles', true)) {
        _print_styles();
    }
    $wp_styles->reset();
    return $wp_styles->done;
}

WordPress Version: 4.2

/**
 * Prints the styles that were queued too late for the HTML head.
 *
 * @since 3.3.0
 */
function print_late_styles()
{
    global $wp_styles, $concatenate_scripts;
    if (!$wp_styles instanceof WP_Styles) {
        return;
    }
    $wp_styles->do_concat = $concatenate_scripts;
    $wp_styles->do_footer_items();
    /**
     * Filter whether to print the styles queued too late for the HTML head.
     *
     * @since 3.3.0
     *
     * @param bool $print Whether to print the 'late' styles. Default true.
     */
    if (apply_filters('print_late_styles', true)) {
        _print_styles();
    }
    $wp_styles->reset();
    return $wp_styles->done;
}

WordPress Version: 3.9

/**
 * Prints the styles that were queued too late for the HTML head.
 *
 * @since 3.3.0
 */
function print_late_styles()
{
    global $wp_styles, $concatenate_scripts;
    if (!is_a($wp_styles, 'WP_Styles')) {
        return;
    }
    $wp_styles->do_concat = $concatenate_scripts;
    $wp_styles->do_footer_items();
    /**
     * Filter whether to print the styles queued too late for the HTML head.
     *
     * @since 3.3.0
     *
     * @param bool $print Whether to print the 'late' styles. Default true.
     */
    if (apply_filters('print_late_styles', true)) {
        _print_styles();
    }
    $wp_styles->reset();
    return $wp_styles->done;
}

WordPress Version: 3.7

/**
 * Prints the styles that were queued too late for the HTML head.
 *
 * @since 3.3.0
 */
function print_late_styles()
{
    global $wp_styles, $concatenate_scripts;
    if (!is_a($wp_styles, 'WP_Styles')) {
        return;
    }
    $wp_styles->do_concat = $concatenate_scripts;
    $wp_styles->do_footer_items();
    if (apply_filters('print_late_styles', true)) {
        _print_styles();
    }
    $wp_styles->reset();
    return $wp_styles->done;
}