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
http { | |
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s; | |
server { | |
location /wp-login.php { | |
limit_req zone=mylimit burst=20 nodelay; | |
} | |
} | |
} |
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
#!/usr/bin/env bash | |
# WP-CLI Back up Script to Amazon S3 | |
# Source: https://www.jonathan.vc | |
# Author: Jonathan Dingman | |
# Adapted from Mike at WP Bullet | |
#define local path for backups | |
BACKUPPATH=/tmp/backups | |
#path to WordPress installations |
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 | |
// Display Input Field on Backend | |
add_action( 'woocommerce_product_options_general_product_data', function () { | |
global $woocommerce, $post; | |
echo '<div class="options_group">'; | |
woocommerce_wp_text_input( | |
array( | |
'id' => 'product_key_features', | |
'label' => __( 'Product Key Features', 'woocommerce' ), | |
'placeholder' => 'Enter product key features (3 words)', |
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( 'woocommerce_admin_disabled', '__return_true' ); | |
add_filter( 'jetpack_just_in_time_msgs', '__return_false', 20 ); | |
add_filter( 'jetpack_show_promotions', '__return_false', 20 ); | |
add_filter( 'woocommerce_allow_marketplace_suggestions', '__return_false', 999 ); | |
add_filter( 'woocommerce_helper_suppress_admin_notices', '__return_true' ); | |
add_filter( 'woocommerce_marketing_menu_items', '__return_empty_array' ); | |
add_filter( 'woocommerce_background_image_regeneration', '__return_false' ); | |
add_filter( 'wp_lazy_loading_enabled', '__return_false' ); | |
add_filter( 'woocommerce_menu_order_count', 'false' ); |
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
<html style=" color-scheme: light dark; supported-color-schemes: light dark;"> | |
<head> | |
<meta name="viewport" content="width=device-width" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" /> | |
<link href="https://unpkg.com/ionicons@4.5.5/dist/css/ionicons.min.css" rel="stylesheet" /> | |
<title>Successful Deposit</title> | |
<meta name="color-scheme" content="light dark" /> | |
<meta name="supported-color-schemes" content="light dark" /> |
OlderNewer