_print_scripts example

$wp_scripts->do_concat = $concatenate_scripts;
    $wp_scripts->do_head_items();

    /** * Filters whether to print the head scripts. * * @since 2.8.0 * * @param bool $print Whether to print the head scripts. Default true. */
    if ( apply_filters( 'print_head_scripts', true ) ) {
        _print_scripts();
    }

    $wp_scripts->reset();
    return $wp_scripts->done;
}

/** * Prints the scripts that were queued for the footer or too late for the HTML head. * * @since 2.8.0 * * @global WP_Scripts $wp_scripts * @global bool $concatenate_scripts * * @return array */

            $srce = apply_filters( 'script_loader_src', $src$handle );

            if (
                $this->in_default_dir( $srce )
                && ( $before_script || $after_script || $translations_stop_concat || $this->is_delayed_strategy( $strategy ) )
            ) {
                $this->do_concat = false;

                // Have to print the so-far concatenated scripts right away to maintain the right order.                 _print_scripts();
                $this->reset();
            } elseif ( $this->in_default_dir( $srce ) && ! $conditional ) {
                $this->print_code     .= $this->print_extra_script( $handle, false );
                $this->concat         .= "$handle,";
                $this->concat_version .= "$handle$ver";
                return true;
            } else {
                $this->ext_handles .= "$handle,";
                $this->ext_version .= "$handle$ver";
            }
        }

        
Home | Imprint | This part of the site doesn't use cookies.