This file contains 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 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 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__, 'setup_build_cron' ); | |
/** | |
* Setup a cron job to run daily. | |
* | |
* @return void | |
*/ | |
function setup_build_cron() { |
This file contains 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 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 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 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 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( 'ssp_single_export_additional_urls', function ( $related_urls ) { | |
global $wpdb; | |
// Get all pages that have a recent posts shortcode. | |
$page_ids = $wpdb->get_row( "SELECT ID FROM {$wpdb->posts} WHERE post_content LIKE '%[recent_posts AND post_type='page'", ARRAY_A ); | |
foreach ( $page_ids as $id ) { | |
$related_urls[] = get_permalink( $id ); |
This file contains 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( 'save_post', 'ssp_auto_export', 10, 3 ); | |
/** | |
* Automatically run a static export after post is saved. | |
* | |
* @param int $post_id given post id. | |
* @param object $post given post object. | |
* @param bool $update if it's updated or not. |
This file contains 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) { |
NewerOlder