Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
web_service='nginx'
config_file="/usr/local/etc/le-renew-webroot2.ini"
le_path='/opt/letsencrypt'
exp_limit=30;
if [ ! -f $config_file ]; then
echo "[ERROR] config file does not exist: $config_file"
@jetlej
jetlej / gist:a8498b00efd908325719
Created March 25, 2015 23:29
Overwrite Wordpress SEO meta description for WC Vendors shop page
// Overwrite meta description for vendor pages
function overwrite_vendor_meta($desc) {
// Return the default value if we're not on a vendor shop page
if(!WCV_Vendors::is_vendor_page()) return $desc;
// Get the vendor description and return it
$vendor_shop = urldecode( get_query_var( 'vendor_shop' ) );
$vendor_id = WCV_Vendors::get_vendor_id( $vendor_shop );
$desc = get_user_meta( $vendor_id, 'pv_shop_description', true );