Following line does't have /products.* page. This tells Nginx to cache all product pages by default.
Idea is fast loading product pages will improve scalability of a store and also conversion.
| New Methiod to Activate Windows/MS Office 2010/2013/2016/2019 | |
| If you have already intalled MS Office Or Download from bellow link | |
| Download setup file for MS Office Pro Plus 2019 https://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-us/ProPlus2019Retail.img | |
| Activate Windows / Office ? | |
| 📌PowerShell Method For Windows 8, 10, 11: | |
| Click the Start Menu, type PowerShell, then open it. | |
| Copy and paste the code below, then press enter. | |
| irm https://get.activated.win | iex |
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| # If images not found on development site, load from production | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^wp-content/uploads/[^/]+/.+\.(jpe?g|jpg|png|gif)$ https://production.com/$0 [R=302,L] |
| # To enable CORS you should add lines with CORS rules below to your valet.conf file | |
| # Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
| # of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
| # after you edit your valet.conf do not forget to execute `valet restart` | |
| server { | |
| listen 80 default_server; | |
| root /; | |
| charset utf-8; | |
| client_max_body_size 128M; |
| <?php | |
| /* | |
| This script will allow you to send a custom email from anywhere within wordpress | |
| but using the woocommerce template so that your emails look the same. | |
| Created by [email protected] on 27th of July 2017 | |
| Put the script below into a function or anywhere you want to send a custom email | |
| */ |
| module.exports.register = function (Handlebars, options) { | |
| Handlebars.registerHelper('concat', function() { | |
| var outStr = ''; | |
| for(var arg in arguments){ | |
| if(typeof arguments[arg]!='object'){ | |
| outStr += arguments[arg]; | |
| } | |
| } | |
| return outStr; |
| <?php | |
| /** | |
| * deploy.php by Hayden Schiff (oxguy3) | |
| * Available at https://gist.github.com/oxguy3/70ea582d951d4b0f78edec282a2bebf9 | |
| * | |
| * No rights reserved. Dedicated to public domain via CC0 1.0 Universal. | |
| * See https://creativecommons.org/publicdomain/zero/1.0/ for terms. | |
| */ | |
| // random string of characters; must match the "Secret" defined in your GitHub webhook |
| <?php | |
| class My_Custom_My_Account_Endpoint { | |
| /** | |
| * Custom endpoint name. | |
| * | |
| * @var string | |
| */ | |
| public static $endpoint = 'my-custom-endpoint'; |
| <?php | |
| /*Allow Span tags in editor*/ | |
| function myextensionTinyMCE($init) { | |
| // Command separated string of extended elements | |
| $ext = 'span[id|name|class|style]'; | |
| // Add to extended_valid_elements if it alreay exists | |
| if ( isset( $init['extended_valid_elements'] ) ) { | |
| $init['extended_valid_elements'] .= ',' . $ext; | |
| } else { |
Following line does't have /products.* page. This tells Nginx to cache all product pages by default.
Idea is fast loading product pages will improve scalability of a store and also conversion.
| # Defines all Languages known to GitHub. | |
| # | |
| # type - Either data, programming, markup, prose, or nil | |
| # aliases - An Array of additional aliases (implicitly | |
| # includes name.downcase) | |
| # ace_mode - A String name of the Ace Mode used for highlighting whenever | |
| # a file is edited. This must match one of the filenames in http://git.io/3XO_Cg. | |
| # Use "text" if a mode does not exist. | |
| # wrap - Boolean wrap to enable line wrapping (default: false) | |
| # extensions - An Array of associated extensions (the first one is |