493publicfunctionprint_inline_script($handle,$position='after',$display=true){494_deprecated_function(__METHOD__,'6.3.0','WP_Scripts::get_inline_script_data() or WP_Scripts::get_inline_script_tag()');495496$output=$this->get_inline_script_data($handle,$position);497if(empty($output)){498returnfalse;499}500501if($display){502echo$this->get_inline_script_tag($handle,$position);503}504return$output;505}
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 6.8.8 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.