// Add the audio field to the signup form. add_action( ‘wcv_form_input_after__wcv_store_name’, ‘wcv_audio_uploader’); function wcv_audio_uploader( ){ // Remove this check to have it show on sign up and settings pages. if (‘signup’ == WCVendors_Pro_Store_Form::$form_type ){ echo ‘ Audio Uploader ‘; $value…Continue reading
/** Activates all Vendor Stores **/ function wcv_activate_all_vendors() { global $wpdb; $vendors = get_users( array( ‘fields’ => array( ‘ID’ ), ‘role’ => ‘Vendor’ ) ); $meta_key = ‘_wcv_vendor_status’; foreach($vendors as $vendor){ $wpdb->query($wpdb->prepare(“UPDATE wp_usermeta SET meta_value=’active’ WHERE user_id=$vendor->ID AND (meta_key=’$meta_key’ AND…Continue reading
/* Adjust PROFILE COVER upload limit */ function bbp_cover_image_max_upload_file_size( $fileupload_maxk, $type ) { if ( ‘cover_image’ == $type ) { $fileupload_maxk = 10485760; // in bytes, 10MB } return $fileupload_maxk; } add_filter( ‘bp_attachments_get_max_upload_file_size’, ‘bbp_cover_image_max_upload_file_size’, 10,2 ); /* Adjust PROFILE AVATAR…Continue reading
/** * Displays the donation summary ( updated to show custom fields ) * * Override this template by copying it to yourtheme/charitable/donation-receipt/summary.php * * @author WP Charitable LLC * @package Charitable/Templates/Donation Receipt * @since 1.0.0 * @version 1.4.7 */…Continue reading
add_filter(‘big_image_size_threshold’, ‘__return_false’ );Continue reading
function as_upsell_shortcode() { $product_ids = array(18516, 31026, 31016,33988,34011,34017,51689,5179,51682,51684); // Updated product IDs ob_start(); echo ‘ ‘; echo ‘ ‘; foreach ($product_ids as $product_id) { $product = wc_get_product($product_id); if ($product) { echo ‘ ‘; // Image container echo ‘ ‘; echo…Continue reading
function prevent_plugin_update( $value ) { if ( isset( $value ) && is_object( $value ) ) { unset( $value->response[‘willers/willers.php’] ); } return $value; } add_filter( ‘site_transient_update_plugins’, ‘prevent_plugin_update’ );Continue reading