This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'oembed_response_data', 'disable_embeds_filter_oembed_response_data_' ); | |
function disable_embeds_filter_oembed_response_data_( $data ) { | |
unset($data['author_url']); | |
unset($data['author_name']); | |
return $data; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp_enqueue_scripts', 'theme_enqueue_styles'); | |
function theme_enqueue_styles() | |
{ | |
wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css'); | |
wp_enqueue_script('child-script', get_stylesheet_directory_uri() . '/js/custom.js'); | |
if (is_single()) { | |
wp_enqueue_script('singlepost-script', get_stylesheet_directory_uri() . '/js/post.js'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
const autoplayVideos = $('.knk-autoplay .et_pb_video_box'); | |
if (autoplayVideos.length) { | |
autoplayVideos.find('video').prop('muted', true) | |
.attr({ | |
loop: 'loop', | |
playsInline: '' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add an incoming webhook in Slack first. | |
# Then save this script somewhere, e.g. /etc/ssh/scripts/notify_ssh_login_slack.sh and execute these commands once: | |
# chmod +x /etc/ssh/scripts/notify_ssh_login_slack.sh | |
# sudo echo "session optional pam_exec.so seteuid /etc/ssh/scripts/notify_ssh_login_slack.sh" >> /etc/pam.d/sshd | |
if [ "$PAM_TYPE" != "close_session" ]; then | |
URL="<slack-webhook-url>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region CF7 | |
#region Submit-Input durch Button ersetzen | |
remove_action('wpcf7_init', 'wpcf7_add_form_tag_submit'); | |
add_action('wpcf7_init', 'nd_cf7_button'); | |
if (!function_exists('nd_cf7_button')) { | |
function nd_cf7_button() | |
{ | |
wpcf7_add_form_tag('submit', 'nd_cf7_button_handler'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Open Directory VLC Plugin | |
This plugin opens the file explorer window of the directory where the current playing video is located. | |
Installation: | |
1. Move this file to the VLC plugins directory. On Windows, the default directory is "C:\Program Files (x86)\VideoLAN\VLC\lua\extensions". | |
2. Restart VLC. | |
3. Play a file. | |
4. Go to "View" and click on the plugin's name. The directory of the current playing file will be opened. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('woocommerce_product_single_add_to_cart_text', function ($label) { | |
return 'Jetzt buchen!'; | |
}, 9999999); | |
add_filter('woocommerce_product_add_to_cart_text', function ($label) { | |
return 'Jetzt buchen!'; | |
}, 9999999); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# coding=utf-8 | |
import apt | |
import apt_pkg | |
from time import strftime | |
import os | |
import subprocess | |
import sys | |
from discord import webhook as dc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Yoast SEO Breadcrumb Filter | |
function wpseo_remove_breadcrumb_link($link_output, $link) | |
{ | |
$text_to_remove = 'Startseite'; | |
if ($link['text'] == $text_to_remove) { | |
$link_output = '<a class="knk_breadcrumb_home" href="' . get_home_url() . '"></a>'; | |
} | |
return $link_output; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header#main-header ul#mobile_menu { | |
overflow: scroll; | |
max-height: 80vh; | |
-overflow-scrolling: touch; | |
-webkit-overflow-scrolling: touch; | |
} |
NewerOlder