WordPress at a glance
function is not described

_wp_scripts_maybe_doing_it_wrong() WP 4.2.0

Helper function to output a _doing_it_wrong message when applicable.

No Hooks.

Return

Nothing (null).

Usage

_wp_scripts_maybe_doing_it_wrong( $function );
$function(string) (required)
Function name.

Code of wp scripts maybe doing it wrong: wp-includes/functions.wp-scripts.php VER 5.1.1

<?php
function _wp_scripts_maybe_doing_it_wrong( $function ) {
	if ( did_action( 'init' ) || did_action( 'admin_enqueue_scripts' ) || did_action( 'wp_enqueue_scripts' ) || did_action( 'login_enqueue_scripts' ) ) {
		return;
	}

	_doing_it_wrong(
		$function,
		sprintf(
			/* translators: 1: wp_enqueue_scripts, 2: admin_enqueue_scripts, 3: login_enqueue_scripts */
			__( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
			'<code>wp_enqueue_scripts</code>',
			'<code>admin_enqueue_scripts</code>',
			'<code>login_enqueue_scripts</code>'
		),
		'3.3.0'
	);
}