Untitled Snippet
function getChatContent() { const chat = document.querySelector('.mwai-chatbot .mwai-messages') || document.querySelector('.mwai-chatbot'); return chat ? chat.innerHTML : '';…
Admin Bar - Updates (copy)
Show updates in Admin Bar
Donation Fee Calculation
/** * 2. Calculate the exact Stripe Fee (2.9% + .30) if "Yes" is selected */…
Allow Subscriptions Product on BOGO and Add Product Search Field
add_filter( 'acfw_product_search_allowed_types' , 'acfw_search_add_support_for_subscription_products' ); function acfw_search_add_support_for_subscription_products( $product_types ) { $product_types[] = 'subscription'; $product_types[] = 'variable-subscription';…
Sample Email Template Tag
This is an example of how to register a new email template tag for EDD.
Add a button to customer data
Add a button to retrieve all customer data.
WPBakery Collapse All Rows
Adds Collapse / Expand All Rows in WP Bakery Builder + Ave WP Theme
WPForms Center Align
Cernter alligns WP forms fields and content. Must enter wpf-center in General/Advanced form settings.
Charitable: Force PayPal Legacy gateway
Overrides Charitable Pro 1.8.15+ PayPal tier detection at read-time so the legacy `paypal` gateway stays visible…
Get rid of Home
Removal of "Home - " in the Title Tag
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 ) {…