WPForms Quiz — Save results as Entry Note
This PHP snippet lets you save quiz results in Entry Notes
Remove address from the header
Remove address block from the header
Elementor - Fix the Accordion SEO issue
add_filter( 'elementor/widget/render_content', function ( $widget_content, $widget ) { if ( 'accordion' === $widget->get_name() ) { $widget_content…
Minify HTML
function minify_html($buffer) { // Remove comments $buffer = preg_replace('//', '', $buffer); // Remove whitespace $buffer =…
CCT – názvy namiesto ID v admin stĺpcoch od Gruppa Taxonomy
/** * CCT – názvy namiesto ID v admin stĺpcoch od Gruppa Taxonomy * V zozname…
Remove Gutenberg Blocks CSS
add_action( 'wp_enqueue_scripts', function () { wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); // Remove WooCommerce block CSS…
WordPress Post Views Counter Function
function wpb_set_post_views($postID) { $count_key = 'wpb_post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 0; delete_post_meta($postID,…
Change a currency symbol AMD to Դրամ
/** * Change a currency symbol */ add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2); function change_existing_currency_symbol( $currency_symbol, $currency )…
Add User Email To Donation Summary
This will allow - among other places - for the user email to be displayed on…
PayPal Commerce - PayPal Checkout using only the PayPal button
Hide Venmo, Pay Later, Apple Pay, Google Pay buttons, and Pay Later messages from the PayPal…
Change Jump links to buttons
Make the "jump to recipe" and "print recipe" links look like buttons at the top of…
Keep Emoticons
WordPress converts all emoticons to emoji. This small snippet prevents that, without removing emojis from your…
Hotfix: Free Downloads - Always load assets
In version 2.3.15 of Free Downloads, an attempt was made to only load the Javascript asset…
Disable Pages and Post from Appearing in Wordpress Search Results
Using WPCode, apply the following code snippet to effectively disable certain pages from appearing in the…
Make Product Non Purchasable for Wholesale Customer if Product Stock is Less Than Certain Amount
This snippet will allow you to make a product unavailable for purchase by wholesale customers if…