548publicfunctionprint_inline_script($handle,$position='after',$display=true){549_deprecated_function(__METHOD__,'6.3.0','WP_Scripts::get_inline_script_data() or WP_Scripts::get_inline_script_tag()');550551$output=$this->get_inline_script_data($handle,$position);552if(empty($output)){553returnfalse;554}555556if($display){557echo$this->get_inline_script_tag($handle,$position);558}559return$output;560}
History
Introduced in 4.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
6.3.0
Deprecated. Use methods get_inline_script_tag() or get_inline_script_data() instead.from the docblock
4.5.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/class-wp-scripts.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.