Sets whether a script module should be printed in the footer.
Description
This is only relevant in block themes.
Parameters
$idstringrequired- Script module identifier.
$in_footerboolrequired- Whether to print in the footer.
Source
public function set_in_footer( string $id, bool $in_footer ): bool {
if ( ! isset( $this->registered[ $id ] ) ) {
return false;
}
$this->registered[ $id ]['in_footer'] = $in_footer;
return true;
}
Changelog
| Version | Description |
|---|---|
| 6.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.