protected function maybe_add_inline_script( $dependency, $context ) {
		if ( ! array_key_exists( 'add_inline', $dependency ) ) {
			return;
		}

		$inline_script = $dependency['add_inline'];

		if ( is_callable( $inline_script ) ) {
			$inline_script = $inline_script( $context );
		}

		wp_add_inline_script( $dependency['handle'], $inline_script );
	}
protected function maybe_add_inline_script( $dependency, $context ) {
		if ( ! array_key_exists( 'add_inline', $dependency ) ) {
			return;
		}

		$inline_script = $dependency['add_inline'];

		if ( is_callable( $inline_script ) ) {
			$inline_script = $inline_script( $context );
		}

		wp_add_inline_script( $dependency['handle'], $inline_script );
	}
protected function maybe_add_inline_script ( $ dependency , $ context ) { if ( ! array_key_exists ( 'add_inline' , $ dependency ) ) { return ; } $ inline_script = $ dependency [ 'add_inline' ] ; if ( is_callable ( $ inline_script ) ) { $ inline_script = $ inline_script ( $ context ) ; } wp_add_inline_script ( $ dependency [ 'handle' ] , $ inline_script ) ; }
Add an inline script snippet to a given dependency.

@since 0.1.0

@param array $dependency The dependency to add the inline script to.
@param mixed $context    Contextual data to pass to the callback.
Contains the type of the dependency at key
'dependency_type'.
Add an inline script snippet to a given dependency .