Skip to content

Instantly share code, notes, and snippets.

View TorbenL's full-sized avatar

Torben Leuschner TorbenL

View GitHub Profile
@TorbenL
TorbenL / functions.php
Last active April 28, 2020 11:56
felix-wp-columns.php
<?php
add_filter ( 'manage_pages_columns', function($columns) {
return array_merge($columns, ['internal_note' => 'Interne Notiz']);
});
add_filter ( 'manage_pages_custom_column', function($column, $post_id) {
if($column === 'internal_note') {
echo get_field('internal_note', $post_id);
return;
}
@TorbenL
TorbenL / remove-wordpress-emojis.php
Created April 30, 2020 18:51
Remove Wordpress Emojis
<?php
add_action( 'init', function() {
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="woman" language="en-US">Our uptime monitor shows that your website has gone down. Get more information on your dashboard at perrfy.com!</Say>
</Response>