Skip to content

Instantly share code, notes, and snippets.

View trueqap's full-sized avatar
🎯
Focusing

TrueQAP trueqap

🎯
Focusing
View GitHub Profile
@trueqap
trueqap / die-jetwoo.php
Last active February 11, 2022 21:25
wp-content/mu-plugins/die-jetwoo.php
<?php
/**
* jetwoodie_plugins_affected_by function
*
* @param [type] $rules
* @return void
*/
function jetwoodie_plugins_affected_by($rules)
{
$affected = array();
@trueqap
trueqap / wooselect.css
Created February 11, 2022 10:48
wooselect.css
.select2-container {
box-sizing: border-box;
display: inline-block;
margin: 0;
position: relative;
vertical-align: middle
}
.select2-container .select2-selection--single {
box-sizing: border-box;
@trueqap
trueqap / replace_variation_single_price.php
Created February 8, 2022 17:54
replace_variation_single_price.php
<?php
function replace_variation_single_price()
{
?>
<style>
.woocommerce-variation-price {
display: none;
}
</style>
@trueqap
trueqap / stlye.css
Created February 6, 2022 13:04
Jet"Smart"Filter jet-sorting-select arrow fix
.jet-sorting-select {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234a4a4a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 0.75rem center;
background-size: 16px 12px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
add_filter('wc_stripe_load_scripts_on_product_page_when_prbs_disabled', '__return_false');
add_filter('wc_stripe_load_scripts_on_cart_page_when_prbs_disabled', '__return_false');
@trueqap
trueqap / rating.php
Created January 5, 2022 06:59
WooCommerce Single Product Rating - Bootstrap 5 + FontAwesome
<?php
/**
* Single Product Rating
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/rating.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
@trueqap
trueqap / php.ini
Last active November 8, 2021 10:31
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value max_execution_time 300
php_value max_input_time 300
php_value max_input_vars 10000
@trueqap
trueqap / wptelepito.php
Created October 19, 2021 08:26
WordPress telepítése könnyedén, egy fájl segítségével
<?php
//https://hellowp.club/hu/wordpress-telepitese-konnyeden-egy-telepito-fajl-segitsegevel/
echo '<pre>';
echo '<span style="color:blue">LETÖLTÉS...</span>'.PHP_EOL;
file_put_contents('wp.zip', file_get_contents('https://hu.wordpress.org/latest-hu_HU.zip'));
$zip = new ZipArchive();
@trueqap
trueqap / trademark.php
Created August 21, 2021 09:09
Domains from which exceptions would be accepted.
<?php
// Domains from which exceptions would be accepted.
$trademark_exceptions = array(
'yoast.com' => array( 'yoast' ),
'automattic.com' => array( 'akismet', 'akismet-', 'jetpack', 'jetpack-', 'wordpress', 'wp-', 'woo', 'woo-', 'woocommerce', 'woocommerce-' ),
'facebook.com' => array( 'facebook', 'instagram', 'oculus', 'whatsapp' ),
'support.microsoft.com' => array( 'bing-', 'microsoft-' ),
'trustpilot.com' => array( 'trustpilot' ),
'microsoft.com' => array( 'bing-', 'microsoft-' ),
@trueqap
trueqap / wp-config.php
Created August 20, 2021 19:46
WordPress: How to Disable All Emails & Notifications
<?php
// Place this function in the WP-CONFIG.PHP file.
function wp_mail(){}