Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

TrueQAP trueqap

🎯
Focusing
Block or report user

Report or block trueqap

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@trueqap
trueqap / funtions.php
Created Mar 4, 2019
WooCommerce megye hiba
View funtions.php
function custom_checkout_fields($fields)
{
// unset($fields['billing']['billing_country']); //ország letiltása
unset($fields['billing']['billing_state']);
// unset($fields['shipping']['shipping_country']); //ország letiltása
unset($fields['shipping']['shipping_state']);
return $fields;
@trueqap
trueqap / style.css
Last active Jul 14, 2019
DIVI menu fix for monitors with smaller screens
View style.css
@media only screen and (max-width: 1200px) and (min-width: 769px) {
.container.clearfix.et_menu_container, #top-header .container.clearfix {
max-width: 95% !important;
width: 100%;}}
@media only screen and (max-width: 1100px) and (min-width: 769px) {
#top-menu li {
padding-right: 13px !important;}
#top-menu li a {
font-size: 0.9375rem !important;}}
@trueqap
trueqap / funtions.php
Last active Jul 14, 2019
Disable WordPress password reset
View funtions.php
<?php
//https://wphu.org/tippek-trukkok/csak-masold-bele-fenti-kodot-sablonod-mappajaban-talalhato-functions-php-ba/
function disable_password_reset() { return false; }
add_filter ( 'allow_password_reset', 'disable_password_reset' );
View content-upload.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@trueqap
trueqap / change.log
Created Dec 20, 2018
WordPress 5.0.2 List of Files Revised
View change.log
wp-admin/about.php
wp-admin/includes/plugin-install.php
wp-admin/includes/post.php
wp-includes/l10n.php
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
wp-includes/script-loader.php
wp-includes/version.php
wp-content/themes/twentyeleven/blocks.css
wp-content/themes/twentyeleven/editor-blocks.css
wp-content/themes/twentyeleven/functions.php
@trueqap
trueqap / function.php
Created Dec 15, 2018
Add the AffiliateWP menu (with content) to the WooCommerce My Account section
View function.php
<?php
// Add new slug
function hellowp_add_premium_support_endpoint()
{
add_rewrite_endpoint('affiliate-partner', EP_ROOT | EP_PAGES);
}
add_action('init', 'hellowp_add_premium_support_endpoint');
View functions.php
add_filter('wc_szamlazz_xml','wc_szamlazz_xml_aam',10,2);
function wc_szamlazz_xml_aam($xml,$order) {
//Minden tétel AAM legyen
foreach($xml->tetelek->tetel as $tetel) {
$tetel->afakulcs = 'AAM';
}
//Megjegyzés kiegészítés
$xml->fejlec->megjegyzes .= ' A számla nem tartalmaz ÁFÁ-t és nem jogosít annak visszaigénylésére sem.';
View functions.php
add_filter('wc_szamlazz_xml', 'wc_szamlazz_megjegyzes', 10, 2);
function wc_szamlazz_megjegyzes($szamla, $order) {
if($order->get_shipping_methods()) {
$szamla->fejlec->megjegyzes .= 'A számla közvetített szolgáltatást tartalmaz';
}
return $szamla;
}
View functions.php
add_filter('wc_szamlazz_xml', 'wc_szamlazz_logo', 10);
function wc_szamlazz_logo($szamla) {
$szamla->fejlec->logoExtra = 'idejönvalami';
return $szamla;
}
View functions.php
add_filter('wc_szamlazz_xml','wc_szamlazz_xml_vat_number',10,2);
function wc_szamlazz_xml_vat_number($xml,$order) {
//Adószám a YITH WooCommerce EU VAT által tárolva
$adoszam = $order->get_meta( 'yweu_billing_vat', true );
//Ha van adószám, MAA az áfakulcs minden tételnél
if($adoszam) {
//Adószám feltüntetése
You can’t perform that action at this time.