|
@@ -35,6 +35,14 @@ function dw_hide() {
|
|
|
</style>
|
|
|
<?php }
|
|
|
|
|
|
+function disable_emojis_tinymce( $plugins ) {
|
|
|
+ if ( is_array( $plugins ) ) {
|
|
|
+ return array_diff( $plugins, array( 'wpemoji' ) );
|
|
|
+ } else {
|
|
|
+ return array();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
function disable_emojis() {
|
|
|
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
|
|
|
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
|