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
For Ubuntu 15.10 (64 bit): | |
sudo dpkg --force-all -r libnss3 | |
wget http://security.ubuntu.com/ubuntu/pool/main/n/nss/libnss3_3.19.2-1ubuntu1_amd64.deb | |
wget http://security.ubuntu.com/ubuntu/pool/main/n/nss/libnss3-nssdb_3.19.2-1ubuntu1_all.deb | |
sudo dpkg -i libnss3_3.19.2-1ubuntu1_amd64.deb libnss3-nssdb_3.19.2-1ubuntu1_all.deb |
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 | |
/** | |
* Created by PhpStorm. | |
* User: anonymous | |
* Date: 03.09.16 | |
* Time: 13:07 | |
*/ | |
// привязываем функции сотворения метабокса и | |
// сохранения данных к соответствующим хукам: | |
add_action('add_meta_boxes', 'car_params_init'); |
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 | |
/* | |
Plugin Name: List Comment Filters | |
Description: List all comment filters on wp_footer | |
Version: 1.1 | |
Author: Thomas Scholz | |
Author URI: http://toscho.de | |
License: GPL v2 | |
*/ |
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
CREATE DATABASE `my_db` CHARACTER SET utf8 COLLATE utf8_general_ci; |
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
Redirect 301 index\.php/[\d]{4}/[\d]{2}/[\d]{2}/(.*) http://%{HTTP_HOST}/$1 | |
# ------------------- | |
RewriteCond %{REQUEST_URI} (index\.php)/(\d{4})/(\d{2})/(\d{2})/(.*) | |
RewriteRule (index\.php)/(\d{4})/(\d{2})/(\d{2})/(.*) http://%{HTTP_HOST}/%5 | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^([0-9]+)/([0-9]+)/([0-9]+)/(.*)$ /$4 [R=301,NC,L] | |
RewriteRule ^index\.php/([0-9]+)/([0-9]+)/([0-9]+)/(.*)$ /$4 [R=301,NC,L] | |
RewriteRule ^index\.php$ - [L] |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress |
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
add_filter( 'fw_ext_page_builder_content_wrapper_class', '_fw_page_builder_wrapper_class' ); | |
function _fw_page_builder_wrapper_class($class) | |
{ | |
return 'my-custom-wrapper-class'; | |
} |
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
// Get The Page ID You Need | |
get_option( 'woocommerce_shop_page_id' ); | |
get_option( 'woocommerce_cart_page_id' ); | |
get_option( 'woocommerce_checkout_page_id' ); | |
get_option( 'woocommerce_pay_page_id' ); | |
get_option( 'woocommerce_thanks_page_id' ); | |
get_option( 'woocommerce_myaccount_page_id' ); | |
get_option( 'woocommerce_edit_address_page_id' ); | |
get_option( 'woocommerce_view_order_page_id' ); | |
get_option( 'woocommerce_terms_page_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
<% | |
for(var i=0; i < quantity; i++ ) { | |
var modIncrement = i+1; | |
var mod = modIncrement % 3; | |
if( ( mod == 1 ) ){ | |
%> | |
<%- include('user/page-start', {index: i}); %> |
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 if (!isset($_SERVER['HTTP_USER_AGENT']) || stripos($_SERVER['HTTP_USER_AGENT'], 'Speed Insights') === false): ?> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-46357715-1', 'auto'); | |
ga('send', 'pageview'); | |
</script> |