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
#!/bin/bash | |
# NEVER BLINDLY COPY COMMANDS FROM THE INTERWEBS TO THE SHELL! | |
sudo wget http://mirrors.kernel.org/ubuntu/pool/main/libi/libidn2/libidn2-0_2.0.4-1.1build2_amd64.deb -O libidn2-0_2.0.4-1.1build2_amd64.deb | |
sudo dpkg -i libidn2-0_2.0.4-1.1build2_amd64.deb | |
sudo apt --fix-broken install | |
sudo apt --allow-releaseinfo-change update | |
sudo apt -y dist-upgrade | |
sudo rm -f libidn2-0_2.0.4-1.1build2_amd64.deb |
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 | |
/** | |
* Put this into your functions.php of your child-theme or custom plugin | |
* you can create the role with wp-cli by running `wp shell` and running the command: | |
* add_role('merchant','Merchant',array('read' => true, 'delete_posts' => false) ); | |
*/ | |
/** | |
* Step #1: create the field used to store the new sale_price for product_variation and for products | |
*/ |