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 | |
namespace Blocksy; | |
/* | |
*/ | |
class Capabilities { | |
private $accounts_cache = 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
<?php | |
add_action( | |
'template_redirect', | |
function () { | |
if ( | |
is_singular() | |
|| | |
is_single() | |
) { |
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 | |
namespace Blocksy\DbVersioning; | |
class V200 { | |
public function migrate() { | |
} | |
} |
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 | |
// Current palette | |
$palette = blocksy_manager()->colors->get_color_palette(); | |
print_r($palette); | |
// 1. Update palette | |
$current_palette = blocksy_get_theme_mod( |
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 | |
add_filter( | |
'blocksy:ext:woocommerce-extra:wish-list:enabled', | |
function ($has_wishlist, $place) { | |
if ($place === 'archive') { | |
// My logic here... | |
// true | false | |
return 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
<?php | |
if (! isset($selector)) { | |
$selector = ':root'; | |
} | |
if (! isset($only_palette)) { | |
$only_palette = false; | |
} |
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 | |
remove_action( | |
'woocommerce_after_main_content', | |
'blocksy_woo_single_product_after_main_content', | |
5 | |
); |
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 | |
remove_action( | |
'woocommerce_single_product_summary', | |
'blocksy_output_single_product_meta', | |
39 | |
); |
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 | |
add_filter('blocksy:breadcrumbs:items-array', function ($items) { | |
if (! is_product()) { | |
return $items; | |
} | |
// Your custom condition | |
$product_should_not_have_breadcrumbs = 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
[ | |
{ | |
"title": "Toyota Auris 2017", | |
"price": 10300, | |
"date": "Bucuresti, Sectorul 1 - Reactualizat la 17 iulie 2023" | |
}, | |
{ | |
"title": "Toyota Corolla 2018, unic proprietar, TVA deductibil", | |
"link": "https://www.olx.ro/d/oferta/toyota-corolla-2018-unic-proprietar-tva-deductibil-IDhk7kM.html", | |
"price": 9990, |