This guide summarizes the files and methodology used for advanced hardening, performance tuning, and cleanup of a WordPress installation.
This file is the primary layer for security and performance at the server level.
- 🛡️ Security Hardening:
| <?php | |
| /** | |
| * @snippet WooCommerce How To Add New Tab @ My Account | |
| * @how-to Watch tutorial @ https://techiesandesh.com | |
| * @author Sandesh Jangam | |
| * @compatible WooCommerce 3.6.2 | |
| * @donate $7 https://www.paypal.me/SandeshJangam/7 | |
| */ | |
| /** |
| memory_limit = 256M | |
| upload_max_filesize = 300M | |
| max_file_uploads = 300M | |
| post_max_size = 300M | |
| max_execution_time = 800 | |
| max_input_time = 800 | |
| max_input_vars = 3000 |
This guide summarizes the files and methodology used for advanced hardening, performance tuning, and cleanup of a WordPress installation.
This file is the primary layer for security and performance at the server level.
| 'use strict'; | |
| const autoprefixer = require('autoprefixer'); | |
| const browsers = require('@wordpress/browserslist-config'); | |
| const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
| const path = require('path'); | |
| const webpack = require('webpack'); | |
| module.exports = function (env, options) { |
Found this great "Web Development In 2019 - A Practical Guide" from Traversy Media, where he discuss about practical guide for web development in 2019. I decided to list it down and follow along to improve my web development skills.
semantic HTML elements
Basic CSS (Positioning, box model)
FlexBox & CSS Grid
CSS Variables (Custom Properties)
| (function (context, trackingId, options) { | |
| const history = context.history; | |
| const doc = document; | |
| const nav = navigator || {}; | |
| const storage = localStorage; | |
| const encode = encodeURIComponent; | |
| const pushState = history.pushState; | |
| const typeException = 'exception'; | |
| const generateId = () => Math.random().toString(36); | |
| const getId = () => { |
| <?php | |
| $fromToken = 'rk_live_abc'; | |
| $toToken = 'rk_test_def'; | |
| $prodContext = stream_context_create([ | |
| 'http' => [ | |
| 'header' => "Authorization: Bearer $fromToken\r\n" | |
| ] | |
| ]); | |
| $testContext = stream_context_create([ |
| <?php | |
| /** | |
| * Check if Block Editor is active. | |
| * Must only be used after plugins_loaded action is fired. | |
| * | |
| * @return bool | |
| */ | |
| function is_active() { | |
| // Gutenberg plugin is installed and activated. | |
| $gutenberg = ! ( false === has_filter( 'replace_editor', 'gutenberg_init' ) ); |