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
#!/bin/bash | |
WP_PATH="/srv/example/public_html" | |
for SITE_URL in $(wp site list --field=url --archived=0 --deleted=0 --path="$WP_PATH") | |
do | |
echo -e "\n$SITE_URL" | |
wp cron event run --due-now --path="$WP_PATH" --url="$SITE_URL" | |
done |
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
/* | |
* Goes in your theme's functions.php, replace '/img/default-image.jpg' with | |
* the path to the custom placeholder image in your theme. | |
*/ | |
add_filter ('woocommerce_placeholder_img_src', () => get_stylesheet_directory_uri() . '/img/default-image.jpg'); |
NewerOlder