This file contains 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
define( 'WC_REMOTE_ALL_DATA', true); |
This file contains 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
<!-- WooCommerce Version --> | |
<meta name="generator" content="WooCommerce 3.4" /> |
This file contains 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 | |
global $post; | |
$ssl_valtas_datuma = strtotime( "2018-08-22" ); | |
$post_datum = strtotime( $post->post_date ); | |
if ( $ssl_valtas_datuma >= $post_datuma ) { | |
$url_cim = get_permalink(); | |
$url_cim = str_replace('https','http',$url_cim); | |
} else { |
This file contains 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_filter( 'wp_footer','custom_product_title_script' ); | |
function custom_product_title_script(){ | |
global $post; | |
// Only single product pages | |
if( ! is_product() ) return; | |
// get an instance of the WC_Product Object | |
$product = wc_get_product($post->ID); |
This file contains 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
body .et_pb_button:hover, .woocommerce a.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce a.button:hover, .woocommerce-page a.button:hover, .woocommerce button.button:hover, .woocommerce-page button.button:hover, .woocommerce input.button:hover, .woocommerce-page input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce-page #respond input#submit:hover, .woocommerce #content input.button:hover, .woocommerce-page #content input.button:hover | |
{ color: #fff; } | |
.woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce-page button.button.alt, .woocommerce input.button.alt, .woocomme |
This file contains 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
define( 'WP_HOME', 'http://YOUR-SITE-DOMAIN-HERE' ); | |
define( 'WP_SITEURL', 'http://YOUR-SITE-DOMAIN-HERE' ); |
This file contains 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 wp_users, wp_usermeta | |
FROM wp_users INNER JOIN wp_usermeta ON wp_users.ID = wp_usermeta.user_id | |
WHERE meta_key = 'wp_capabilities' AND meta_value LIKE '%subscriber%'; | |
//cleaning: | |
DELETE wp_usermeta | |
FROM wp_usermeta LEFT JOIN wp_users ON wp_usermeta.user_id=wp_users.id | |
WHERE wp_users.id IS NULL |
This file contains 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
function my_hide_shipping_when_free_is_available( $rates ) { | |
$free = array(); | |
foreach ( $rates as $rate_id => $rate ) { | |
if ( 'free_shipping' === $rate->method_id ) { | |
$free[ $rate_id ] = $rate; | |
break; | |
} | |
} | |
return ! empty( $free ) ? $free : $rates; | |
} |
This file contains 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
define('WC_SZAMLAZZ_JELSZO', 'jelszavad'); |
This file contains 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_filter('wc_szamlazz_xml', 'wc_szamlazz_edit_xml', 10, 2); | |
function wc_szamlazz_edit_xml($xml, $order) | |
{ | |
return $xml; | |
} |