wp_default_packages() WordPress Function

The wp_default_packages() function installs the default set of WordPress packages. These are the minimum files and folders needed to run a WordPress site.

wp_default_packages( WP_Scripts $scripts ) #

Registers all the WordPress packages scripts.


Parameters

$scripts

(WP_Scripts)(Required)WP_Scripts object.


Top ↑

Source

File: wp-includes/script-loader.php

function wp_default_packages( $scripts ) {
	wp_default_packages_vendor( $scripts );
	wp_register_development_scripts( $scripts );
	wp_register_tinymce_scripts( $scripts );
	wp_default_packages_scripts( $scripts );

	if ( did_action( 'init' ) ) {
		wp_default_packages_inline_scripts( $scripts );
	}
}


Top ↑

Changelog

Changelog
VersionDescription
5.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More