Prevent AlOSEO from outputting any data on term pages
This snippet can be used to prevent AlOSEO from outputting any data on term pages
MemberPress: Remove State Text Field
Removes the state text field from the registration and account pages if the country does not…
Show Discount Field
Makes the discount field on checkout show by default.
Disable Author Archive
A small Code that disable the WordPress Author Archive and redirect to the Homepage
Add the fields to the user edit screen
// Add the fields to user edit screen. add_action( 'show_user_profile', 'add_extra_user_fields' ); add_action( 'edit_user_profile', 'add_extra_user_fields' );…
Change Admin Panel Footer Text
Display custom text in the admin panel footer with this snippet.
webfontloader.js
// Add custom scripts function add_custom_script_webfont_loader_js() { wp_register_script( 'webfontloader', 'https://cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js', array(), '1.6.28', true ); wp_enqueue_script( 'webfontloader'…
Delete Woocommerce images after deleting product
Automatically Delete WooCommerce Images After Deleting a Product. If you use the same image of multiple…
Prevent Duplicate Cart Items
Prevents the same item from being added to the cart multiple times.
Contato
Entre em contato conosco, sugira, elogie, corrija, reclame
Buy Now Button - Variation
add_filter( 'gettext', 'customizing_product_variation_message', 10, 3 ); function customizing_product_variation_message( $translated_text, $untranslated_text, $domain ) { if ($untranslated_text ==…