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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Redirecting...</title> | |
<meta http-equiv="refresh" content="0;url=/"> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
window.location = "https://mmm.pics/feed/index.xml"; | |
</script> |
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
<?php | |
add_filter( 'ss_match_tags', function ( $match_tags ) { | |
$match_tags['atom'] = array( 'href' ); | |
return $match_tags; | |
} ); |
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
<?php | |
// Klar:sendOrderEvent | |
add_action( 'woocommerce_thankyou', function ( $order_id ) { | |
?> | |
<script> | |
(function () { | |
window._k_q = window._k_q || []; | |
window._k_q.push(["Klar:sendOrderEvent", { | |
orderId: <?php echo esc_html( $order_id ); ?>, |
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
<?php | |
add_action( 'admin_init', function() { | |
// Get Simply Static options. | |
$options = get_option('simply-static'); | |
// Check if directory exists, if not, create it. | |
$upload_dir = wp_upload_dir(); | |
$temp_dir = $upload_dir['basedir'] . DIRECTORY_SEPARATOR . 'simply-static' . DIRECTORY_SEPARATOR . 'temp-files'; | |
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
<p> | |
<a href="https://simply-cdn.lemonsqueezy.com/checkout/buy/your-api-key?embed=1&" class="lemonsqueezy-button"> | |
Pay now! | |
</a> | |
<script src="https://app.lemonsqueezy.com/js/lemon.js" defer=""></script> | |
</p> |
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
<?php | |
/* FREEMIUS API BASIC AUTH WORKAROUND */ | |
add_filter( 'http_request_args', 'my_http_request_args_filter', 1, 2 ); | |
add_filter( 'http_request_args', 'my_http_request_args_filter', 9999, 2 ); | |
function my_http_request_args_filter( $parsed_args, $url ) { | |
if ( false === strpos( $url, '://api.freemius.com' ) ) { | |
return $parsed_args; | |
} |
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
document.addEventListener("DOMContentLoaded", function () { | |
const language_links = document.querySelectorAll('.wpml-ls-link'); | |
for (const language_link of language_links) { | |
language_link.addEventListener('click', function handleClick(event) { | |
event.preventDefault(); | |
let languages = this.getElementsByClassName('wpml-ls-native'); | |
for (const language of languages) { |
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
<?php | |
register_activation_hook( __FILE__, 'ss_setup_static_daily_export_cron' ); | |
/** | |
* Setup a cron job to run daily. | |
* | |
* @return void | |
*/ | |
function ss_setup_static_daily_export_cron() { |
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
name: Upload Website | |
on: | |
repository_dispatch: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
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
<?php | |
add_action( 'init', function() { | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
}); | |
NewerOlder