Add WooCommerce upsells below the add-to-cart button

// add upsells below add-to-cart button add_action( 'woocommerce_single_product_summary', 'woocommerce_upsell_display', 40 );

Add custom CSS in the Admin

Use this snippet to add custom styles in the WordPress admin head. Add your CSS code…

<10

Copyright Year Shortcode

Add shortcode to automatically update the copyright year. [year]

Add Campaign Status to Campaign Shortcode

This inserts the campaign status ('active', 'successful') to the [campaigns] shortcode. https://www.wpcharitable.com/documentation/the-campaigns-shortcode/

Prevent AIOSEO From Rewriting Term Title

This snippet can be used to prevent AIOSEO from rewriting term titles.

<10

Explicit Fixed Width and Height

Explicit Fixed Width and Height for images

Move Jump to Recipe above featured image in Genesis

/** * Ensures the "Jump to Recipe" button is added above the featured image. */ add_action(…

<10

product attributes on hover

a snippet to show product attributes in product archive grid layout

Add Progress Bar Before Summary

Add a progress bar to the individual legacy campaign pages.

Allow JS Files Upload

Allowing to upload JS files into media folder for custom special integration such as booking search…

Add Donation Receipt Opt Out Checkbox

In this function we register a new donation field with a key of `receipt_opt_out`. If the…

MemberPress: Manually Refresh Member Data

This code snippet is designed to manually refresh all members' data on a WordPress site. After…

Blog filter

Add a filter for blogs

Convert Customers to Users

Adds a tool to create user accounts for customers that don't already have them, and update…

WP Simple Pay: Use Payment Form Description as Payment Description

Always use the payment form's "Description" as the Stripe payment description. By default WP Simple Pay…

1 … 41 42 43 44 45 … 242