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…
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…
Remove hyperlink from name field
add_filter('preprocess_comment', 'remove_links_from_comment_author'); function remove_links_from_comment_author($commentdata) { // Regular expression to detect hyperlinks $pattern = '/
Disable Order Receipt Email Optimizations
In Easy Digital Downloads 3.2.0+, the Purchase Confirmation (or Receipt) email sent to customers is sent…
Hide nutrition facts for Tasty Recipes printing
Prevent nutritional information from being displayed in the Tasty Recipes print view