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
| .htaccess | |
| <IfModule mod_rewrite.c> | |
| Options +FollowSymLinks -MultiViews | |
| RewriteRule ^wp-content/uploads/(.+) https://wiederkraft.ru%{REQUEST_URI} [L,QSA,NC] | |
| </IfModule> | |
| # BEGIN WordPress | |
| # Директивы (строки) между `BEGIN WordPress` и `END WordPress` | |
| # созданы автоматически и подлежат изменению только через фильтры 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
| DELETE relations.*, taxes.*, terms.* | |
| FROM wp_term_relationships AS relations | |
| INNER JOIN wp_term_taxonomy AS taxes | |
| ON relations.term_taxonomy_id=taxes.term_taxonomy_id | |
| INNER JOIN wp_terms AS terms | |
| ON taxes.term_id=terms.term_id | |
| WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type='product'); | |
| DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type = 'product'); | |
| DELETE FROM wp_posts WHERE post_type = 'product'; |
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
| #!/bin/bash | |
| host="host@123.456.789.100" | |
| localdbname="dbLocalName" | |
| echo 'Connect and Making dump...'; | |
| ssh $host 'mysqldump -uUSER -pPASS BASE > sql_backup/NAME.sql'; | |
| echo 'Connect and Making dump...Done'; | |
| echo 'Copying dump...'; | |
| scp $host:sql_backup/NAME.sql NAME.sql; |
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
| <link rel="icon" href="icon.svg" sizes="any" type="image/svg+xml"> | |
| <link rel="icon" sizes="48x48" href="icon-48.png"> | |
| <link rel="icon" sizes="96x96" href="icon-96.png"> | |
| <link rel="icon" sizes="144x144" href="icon-144.png"> | |
| <link rel="icon" sizes="192x192" href="icon-192.png"> | |
| <link rel="icon" sizes="256x256" href="icon-256.png"> | |
| <link rel="icon" sizes="384x384" href="icon-384.png"> | |
| <link rel="icon" sizes="512x512" href="icon-512.png"> | |
| <link rel="apple-touch-icon" sizes="57x57" href="apple-touch-icon-57.png"> |
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_action( | |
| 'wp_footer', | |
| function() { | |
| ?> | |
| <script type="text/javascript"> | |
| ( function () { | |
| 'use strict'; | |
| // Флаг, что Метрика уже загрузилась. | |
| var loadedMetrica = false, |
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
| if ( ! function_exists( 'attribute_slug_to_title' ) ) { | |
| function attribute_slug_to_title( $attribute ,$slug ) { | |
| global $woocommerce; | |
| if ( taxonomy_exists( esc_attr( str_replace( 'attribute_', '', $attribute ) ) ) ) { | |
| $term = get_term_by( 'slug', $slug, esc_attr( str_replace( 'attribute_', '', $attribute ) ) ); | |
| if ( ! is_wp_error( $term ) && $term->name ) | |
| $value = $term->name; | |
| } else { | |
| $value = apply_filters( 'woocommerce_variation_option_name', $value ); | |
| } |
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
| /** | |
| * @param $var | |
| * @param $die | |
| * @param $all | |
| * @return void | |
| * | |
| * Admin dump functions | |
| */ | |
| function dump($var, $die = false, $all = false) | |
| { |
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
| >0.3% | |
| Chrome >= 92 | |
| Edge >= 92 | |
| Firefox >= 90 | |
| Opera >= 77 | |
| Safari >= 12 | |
| ChromeAndroid >= 92 | |
| ios_saf >= 12 | |
| not IE <= 11 | |
| not ie_mob <= 11 |
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
| Xdebug 3 | |
| xdebug.mode=debug | |
| xdebug.start_with_request=yes | |
| xdebug.client_host=host.docker.internal | |
| xdebug.client_port=9003 | |
| xdebug.idekey=PHPSTORM |