After searching a bit (and not finding anything about it), here's a little documentation on how to get your pricing rules of the WooCommerce Dynamic Pricing Plugin programmatically.
This file contains hidden or 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
[acceptance dsgvo] Ich habe die <a href="/blog.php/datenschutz/" target="_blank">Datenschutzerklärung</a> gelesen und akzeptiert* | |
[acceptance dsgvo] I have read and accepted the <a href="/blog.php/datenschutz/" target="_blank">data security declaration</a>* | |
[acceptance dsgvo] J'ai lu et accepté la <a href="/blog.php/datenschutz/" target="_blank">politique de confidentialité</a>* | |
[acceptance dsgvo] Ho letto e accettato <a href="/blog.php/datenschutz/" target="_blank">l'informativa sulla privacy</a>* |
This file contains hidden or 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
grep -rnw . -e 'waldo' | |
find . -name 'waldo.txt' |
This file contains hidden or 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 | |
/** | |
* Compare the contents of two files and return if they're the same | |
* | |
* modified version of: | |
* https://jonlabelle.com/snippets/view/php/quickly-check-if-two-files-are-identical | |
* | |
* @param string $fileOne path to file One | |
* @param string $fileTwo path to file two |
This file contains hidden or 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 this snippet to your functions.php if you want this kind of funcitonality | |
function add_something_before_invoice_item_name($name, $item) { | |
// getting category terms | |
$terms = get_the_terms($item->get_product_id(), 'product_cat'); | |
// if this product has the category "Premium", it will be prepended to the name | |
foreach ($terms as $term) |
This file contains hidden or 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
<!-- | |
Warning: simplified, check out | |
https://www.kathirvel.com/adding-file-uploads-to-magento-admin-system-configuration/ | |
--> | |
<config> | |
<sections> | |
<TAB_NAME> | |
<groups> | |
<GROUP_NAME> | |
<fields> |
a game about elevators
moved to https://github.com/Werninator/auf
in auf you control elevator(s) to bring different people from one floor to another
This file contains hidden or 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
# https://godotengine.org/qa/485/how-to-center-game-window | |
var screen_size = OS.get_screen_size() | |
var window_size = OS.get_window_size() | |
func _ready(): | |
OS.set_window_position(screen_size * .5 - window_size * .5) |
This file contains hidden or 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
<!-- Contents can't be accessed (might be good for pdf stuff) --> | |
<object data="abc.pdf" type="application/pdf"> | |
<!-- Alternative content when Object can't be loaded (coz of older browsers): HTML5 <embed>, contents can be manipulated --> | |
<embed src="abc.pdf" type="application/pdf" /> | |
</object> |