wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
print_emoji_detection_script › WordPress Function
Da4.2.0
Deprecaton/a
› print_emoji_detection_script ( Nessun parametro )
| Definito a: |
|
| Codex: |
Prints the inline Emoji detection script if it is not already printed.
Funzioni correlate: print_embed_scripts, print_footer_scripts, print_head_scripts, wp_print_footer_scripts, print_emoji_styles
Sorgenti
function print_emoji_detection_script(): void {
static $printed = false;
if ( $printed ) {
return;
}
$printed = true;
if ( is_admin() ) {
if ( did_action( 'admin_print_footer_scripts' ) ) {
_print_emoji_detection_script();
} else {
add_action( 'admin_print_footer_scripts', '_print_emoji_detection_script' );
}
} else {
if ( did_action( 'wp_print_footer_scripts' ) ) {
_print_emoji_detection_script();
} else {
add_action( 'wp_print_footer_scripts', '_print_emoji_detection_script' );
}
}
}