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 May 4, 2019
DIVI WooCommerce search
View funtions.php
function my_search_form( ) {
ob_start();
$post_type = isset($_GET['post_type'])?$_GET['post_type']:'';
?>
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div>
<label class="screen-reader-text" for="s"><?php _x( 'Keresés:', 'label' ); ?></label>
<select class="searchfor">
<option value="" <?php selected( $post_type , '' ); ?>>Weboldalon</option>
<option value="product" <?php selected( $post_type , 'product' ); ?>>Termékek között</option>
@trueqap
trueqap / Style.css
Last active Mar 24, 2019
Divi menüpontok aláhúzása
View Style.css
#top-menu .current-menu-item a::before,
#top-menu .current_page_item a::before {
content: "";
position: absolute;
z-index: 2;
left: 0;
right: 0;
}
#top-menu li a:before {
content: "";
@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 Mar 26, 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 Jan 13, 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;
}
You can’t perform that action at this time.