FluentCommunity Auto-Delete Diagnostics
This diagnostic snippet monitors and logs how the FluentCommunity auto-delete system behaves, without needing debug.log. It…
WPCode Admin Number of Snippets
Change the number of snippets displayed in the admin list using a filter.
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';…
Restrict Dashboard Summary Widget
Prevent specific users (by user ID) from seeing the Easy Digital Downloads Sales Summary widget.
Non-required Card State
Makes the cart state a non-required field when present
Change label of CSV header, and removing others(Export Totals to CSV)
This snippet will change the label of CSV header, and remove the others(Export Totals to CSV)
Remove Post Title from Yoast Breadcrumb
/* Remove Post Title from Yoast Breadcrumb */ add_filter('wpseo_breadcrumb_single_link', 'remove_breadcrumb_title' ); function remove_breadcrumb_title( $link_output) { if(strpos(…
Change Method Label
add_filter( 'woocommerce_cart_shipping_method_full_label', 'wcv_override_vendor_shipping_label', 10, 2 ); function wcv_override_vendor_shipping_label( $label, $method ){ $label = 'Flat-rate'; // cost;…
Override the commission calculation priority order
/** * Given the provided list of vendor_ids in the vendors array, override the commission to…
test
echo 'test';
Extra WordPress Filters in Pro (Do something with the price display) | Display Eventbrite Events
Using this filter, you can change the price display. filter: (‘wfea_price_display‘ , $price_display, $min, $max, $currency)…
Change Arabic Currency symbol to the currency short code
example change د.إ to AED and all the Arabic currencies
Post-States
add_filter( 'display_post_states', 'bu_style_post_state_bricks', 15, 2 ); function bu_style_post_state_bricks ($post_states, $post) { if( isset( $post_states['bricks'] ) )…
Allow SVG Files Upload
Add support for SVG files to be uploaded in WordPress media.