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
/** | |
* После добавления товара в корзину - показать мадолбное окно | |
*/ | |
$( document.body ).on('adding_to_cart', function( a, b ) { | |
var $btn = $( b[0] ); | |
var product_title = $btn.data('product_title'); | |
if ( product_title ) { | |
var tpl = ''; |
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 | |
/** | |
* 1. You have to store your client SSL certificates on your Laravel server, in my case this is /var/certs/mydomain.com/... | |
* 2. You have to right select SSL mode for PostgreSQL (see https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS), verify-full means your server CA is signed for real domain name for the PostgreSQL server (recommended) | |
* 3. Go to Laravel config/database.php to the section 'pgsql' and extend it to the following: | |
*/ | |
return [ | |
/*...*/ | |
'connections' => [ | |
/*'mysql' etc*/ |
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 | |
/** | |
* Remove current action or filter from plugin | |
* | |
* @param string $class_name Class name enqueueing the action. | |
* @param null $action_name Action name. | |
*/ | |
function remove_plugin_action( $class_name, $action_name = null ) { | |
global $wp_filter; |
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
# This file is for unifying the coding style for different editors and IDEs | |
# editorconfig.org | |
# WordPress Coding Standards | |
# https://make.wordpress.org/core/handbook/coding-standards/ | |
root = true | |
[*] | |
charset = utf-8 |
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
<section class="elementor-element elementor-element-8a510f3 elementor-section-content-middle elementor-section-boxed ang-section-padding-no elementor-section-height-default elementor-section-height-default default-style elementor-section elementor-inner-section" data-id="8a510f3" data-element_type="section" data-settings="{"rt_color_sets":"default-style"}"> | |
<div class="elementor-container elementor-column-gap-default"> | |
<div class="elementor-row"> | |
<div class="elementor-element elementor-element-5f40b76 elementor-column elementor-col-50 elementor-inner-column" data-id="5f40b76" data-element_type="column"> | |
<div class="elementor-column-wrap elementor-element-populated"> | |
<div class="elementor-widget-wrap"> | |
<div class="elementor-element elementor-element-7226505 elementor-widget elementor-widget-heading" data-id="7226505" data-element_type="widget" data-widget_type="heading.default"> | |
<div class="elementor-widget-container"> | |
<h4 class="elementor-heading-title ele |
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
git checkout --orphan latest_branch && \ | |
git add -A && \ | |
git commit -am "initial commit" && \ | |
git branch -D master && \ | |
git branch -m master && \ | |
git push -f origin master | |
Taken from |
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 SymfonyStyle $io | |
* @param $remotePath | |
* | |
* @return string | |
*/ | |
public function download(SymfonyStyle $io, $remotePath) | |
{ | |
$io->section("Download " . $remotePath); | |
$parts = parse_url($remotePath); |
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 | |
// Add to: path/to/wp-content/wp-themes/your-theme/functions.php | |
/** | |
* Activate required plugins | |
*/ | |
include_once ( ABSPATH . 'wp-admin/includes/plugin.php' ); |
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 | |
add_action( | |
'wp_footer', | |
function () { | |
echo wp_kses( $this->debugbar->getJavascriptRenderer()->render(), [ 'script' => [] ] ); | |
}, | |
1000 | |
); |