RED'S Java Snippet

fetch("https://redllc.ai/wp-json/chaport/v1/lead", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(payload) }) .then(res => res.json()) .then(data…

Home page

home page schema

David Nesmith
<10

Remove ISO 4217 for Google Feeds

// Force localization for all feeds add_filter('adt_product_feed_localize_price_args', function($args) { $args['decimal_separator'] = '.'; $args['thousand_separator'] = ','; return…

<10

Gravity Forms Hook — BOL Upload Triggers Capture

When the vendor uploads the Bill of Lading, the following snippet links the submission to the…

Custom fields to vendor settings page

add_action('wcvendors_settings_after_paypal', 'pv_add_custom_merchant_id_field'); function pv_add_custom_merchant_id_field() { ?>

Allow WooCommerce Shop Managers to manage vendors

/* Lets Shop Managers edit users with these user roles */ function wcv_allow_shop_manager_role_edit_capabilities( $roles ) {…

login redirect changed from default my account page to home page

/** * WooCommerce My Account Page login Redirect */ add_action( 'wp_login', 'owp_redirect_after_logout' ); function owp_redirect_after_logout() {…

Automatically Trash Past Events

Sites that have been running for years build up thousands of finished events. They stay in…

Untitled Snippet

@ini_set( 'upload_max_size' , '120M' ); @ini_set( 'post_max_size', '120M'); @ini_set( 'max_execution_time', '300' );

Change Add Product button URL

Change Add Product button URL

Hotfix: Remove Stripe Statement Descriptor

In EDD 3.2.8, Easy Digital Downloads changed how Statement Descriptors are used with Stripe Payments to…

Remove image link from media uploads

Older versions of WordPress automatically linked the image to the media file.

1 140 141 142 143 144 234